Skip to content

Commit

Permalink
Merge pull request #3 from sever-sever/T6674-trigger-rebuild-sag
Browse files Browse the repository at this point in the history
T6674: Action add trigger workflow to rebuild package
  • Loading branch information
evgsentrium authored Sep 18, 2024
2 parents 2cb0416 + 9cf1e6d commit d49f1ae
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/trigger-rebuild-repo-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Trigger to build a deb package from repo

on:
pull_request_target:
types:
- closed
branches:
- sagitta
workflow_dispatch:

jobs:
get_repo_name:
runs-on: ubuntu-latest
outputs:
PACKAGE_NAME: ${{ steps.package_name.outputs.PACKAGE_NAME }}
steps:
- name: Set variables
id: package_name
run: |
echo "PACKAGE_NAME=$(basename ${{ github.repository }})" >> $GITHUB_OUTPUT
trigger-build:
needs: get_repo_name
uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@sagitta
with:
branch: ${{ github.ref_name }}
package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }}
secrets:
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
PAT: ${{ secrets.PAT }}

0 comments on commit d49f1ae

Please sign in to comment.