diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-09-13 15:40:28 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-09-13 15:40:28 +0000 |
commit | 3badf0596ae0f6684160dcb0494ac98fa056615f (patch) | |
tree | b0b9ecfc80ab4d382d0a64ce7ec7c782c6a15da6 /.github/workflows | |
parent | 2f63fdcba17235f45c161d23a9fcb3f53007deb1 (diff) | |
download | vyos-1x-3badf0596ae0f6684160dcb0494ac98fa056615f.tar.gz vyos-1x-3badf0596ae0f6684160dcb0494ac98fa056615f.zip |
T6674: Actions use pull_request_target to trigger build package
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/trigger-rebuild-repo-package.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml index 166d7e711..78acec685 100644 --- a/.github/workflows/trigger-rebuild-repo-package.yml +++ b/.github/workflows/trigger-rebuild-repo-package.yml @@ -1,7 +1,7 @@ name: Trigger to build a deb package from repo on: - pull_request: + pull_request_target: types: - closed branches: @@ -23,7 +23,10 @@ jobs: needs: get_repo_name uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@current with: - branch: ${{ github.ref_name }} - package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }} - REF: main # optinal because the default value is main - secrets: inherit + branch: ${{ github.ref_name }} + package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }} + secrets: + REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} + REMOTE_REPO: ${{ secrets.REMOTE_REUSE_REPO }} + GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} + PAT: ${{ secrets.PAT }} |