summaryrefslogtreecommitdiff
path: root/.github/workflows/trigger-pr-mirror-repo-sync.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/trigger-pr-mirror-repo-sync.yml')
-rw-r--r--.github/workflows/trigger-pr-mirror-repo-sync.yml32
1 files changed, 3 insertions, 29 deletions
diff --git a/.github/workflows/trigger-pr-mirror-repo-sync.yml b/.github/workflows/trigger-pr-mirror-repo-sync.yml
index 9653c2dca..d5e8ce3b4 100644
--- a/.github/workflows/trigger-pr-mirror-repo-sync.yml
+++ b/.github/workflows/trigger-pr-mirror-repo-sync.yml
@@ -6,33 +6,7 @@ on:
branches:
- current
-env:
- GH_TOKEN: ${{ secrets.PAT }}
-
-concurrency:
- group: trigger-pr-mirror-repo-sync-${{ github.event.pull_request.base.ref }}
- cancel-in-progress: false
jobs:
- trigger-mirror-pr-repo-sync:
- if: ${{ github.repository_owner == 'vyos' }}
- runs-on: ubuntu-latest
- permissions:
- pull-requests: write
- contents: write
-
- steps:
- - name: Bullfrog Secure Runner
- uses: bullfrogsec/bullfrog@v0
- with:
- egress-policy: audit
-
- - name: Trigger repo sync
- shell: bash
- run: |
- echo "Triggering sync workflow for ${{ secrets.REMOTE_OWNER }}/${{ secrets.REMOTE_REPO }}"
- echo "Triggering sync workflow with PAT ${{ secrets.PAT }}"
- curl -X POST \
- -H "Accept: application/vnd.github.everest-preview+json" \
- -H "Authorization: Bearer ${{ secrets.PAT }}" \
- https://api.github.com/repos/${{ secrets.REMOTE_OWNER }}/${{ secrets.REMOTE_REPO }}/actions/workflows/mirror-pr-and-sync.yml/dispatches \
- -d '{"ref":"git-actions", "inputs": {"pr_number": "${{ github.event.pull_request.number }}", "sync_branch": "${{ github.event.pull_request.base.ref }}"}}'
+ call-trigger-mirror-pr-repo-sync:
+ uses: vyos/.github/.github/workflows/trigger-pr-mirror-repo-sync.yml@current
+ secrets: inherit