summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkumvijaya <kumvijaya@gmail.com>2026-04-07 00:18:26 +0530
committerkumvijaya <kumvijaya@gmail.com>2026-04-07 00:18:26 +0530
commit24e645ddcf6598ea084083bbd16c9160ce32e3b6 (patch)
tree9fbefaa82f0c7b361e7bbdb2be4ca68363055a53
parent820642dce73976a373727556195d7c88923465d1 (diff)
downloadvyos-cloud-init-24e645ddcf6598ea084083bbd16c9160ce32e3b6.tar.gz
vyos-cloud-init-24e645ddcf6598ea084083bbd16c9160ce32e3b6.zip
T8218: Updated workflows for pullrequest_target policy change
-rw-r--r--.github/workflows/trigger-rebuild-repo-package.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml
index 37ec8327..5630f3cc 100644
--- a/.github/workflows/trigger-rebuild-repo-package.yml
+++ b/.github/workflows/trigger-rebuild-repo-package.yml
@@ -6,25 +6,33 @@ on:
- closed
branches:
- current
+ - circinus
+ - sagitta
workflow_dispatch:
jobs:
- get_repo_name:
+ setup-vars:
runs-on: ubuntu-latest
outputs:
- PACKAGE_NAME: ${{ steps.package_name.outputs.PACKAGE_NAME }}
+ PACKAGE_NAME: ${{ steps.vars.outputs.PACKAGE_NAME }}
+ BRANCH: ${{ steps.vars.outputs.BRANCH }}
steps:
- name: Set variables
- id: package_name
+ id: vars
run: |
echo "PACKAGE_NAME=$(basename ${{ github.repository }})" >> $GITHUB_OUTPUT
+ if [ "${{ github.event_name }}" = "pull_request_target" ]; then
+ echo "BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_OUTPUT
+ else
+ echo "BRANCH=${{ github.ref_name }}" >> $GITHUB_OUTPUT
+ fi
trigger-build:
- needs: get_repo_name
+ needs: setup-vars
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 }}
+ branch: ${{ needs.setup-vars.outputs.BRANCH }}
+ package_name: ${{ needs.setup-vars.outputs.PACKAGE_NAME }}
secrets:
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }}