summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-09-13 17:29:45 +0100
committerGitHub <noreply@github.com>2024-09-13 17:29:45 +0100
commit4667eefa033eb1aeb2daa9712c3828f654916fc7 (patch)
treeb0b9ecfc80ab4d382d0a64ce7ec7c782c6a15da6
parent2f63fdcba17235f45c161d23a9fcb3f53007deb1 (diff)
parent3badf0596ae0f6684160dcb0494ac98fa056615f (diff)
downloadvyos-1x-4667eefa033eb1aeb2daa9712c3828f654916fc7.tar.gz
vyos-1x-4667eefa033eb1aeb2daa9712c3828f654916fc7.zip
Merge pull request #4066 from sever-sever/T6674-trigger-fix
T6674: Actions use pull_request_target to trigger build package
-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 }}