diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-09-20 14:28:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 14:28:25 +0100 |
commit | 005d393690750214dc81ac326f1a73a5afe866d2 (patch) | |
tree | a656337a9de697fb96f0cc0db2dfc4ce3c0b84a9 /.github/workflows | |
parent | 002947e99b28c899d498e87fe400f5cd310bff16 (diff) | |
parent | c6c2f0b501251efb2efa14e9d13a9edefd28985c (diff) | |
download | vyatta-cfg-system-sagitta.tar.gz vyatta-cfg-system-sagitta.zip |
Merge pull request #227 from sever-sever/T6674-trigger-rebuild-sagsagitta
T6674: Action add trigger workflow to rebuild package
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/trigger-rebuild-repo-package.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml new file mode 100644 index 00000000..f267a631 --- /dev/null +++ b/.github/workflows/trigger-rebuild-repo-package.yml @@ -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 }} |