diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-09-18 15:08:52 +0000 |
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-09-18 15:08:52 +0000 |
| commit | 232ada34a790a8fb886b4d95fcf23b11d5c9d046 (patch) | |
| tree | e48d18cdfb427c68fccb0a4404c3592c2e6fecf1 /.github/workflows | |
| parent | 975d486fb30a852550fb5ceb758ad2a49abf8013 (diff) | |
| download | vyos-user-utils-232ada34a790a8fb886b4d95fcf23b11d5c9d046.tar.gz vyos-user-utils-232ada34a790a8fb886b4d95fcf23b11d5c9d046.zip | |
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 0000000..f267a63 --- /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 }} |
