summaryrefslogtreecommitdiff
path: root/.github/workflows/trigger-rebuild-repo-package.yml
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-09-13 15:40:28 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-09-13 15:40:28 +0000
commit3badf0596ae0f6684160dcb0494ac98fa056615f (patch)
treeb0b9ecfc80ab4d382d0a64ce7ec7c782c6a15da6 /.github/workflows/trigger-rebuild-repo-package.yml
parent2f63fdcba17235f45c161d23a9fcb3f53007deb1 (diff)
downloadvyos-1x-3badf0596ae0f6684160dcb0494ac98fa056615f.tar.gz
vyos-1x-3badf0596ae0f6684160dcb0494ac98fa056615f.zip
T6674: Actions use pull_request_target to trigger build package
Diffstat (limited to '.github/workflows/trigger-rebuild-repo-package.yml')
-rw-r--r--.github/workflows/trigger-rebuild-repo-package.yml13
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 }}