summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorkumvijaya <kumvijaya@gmail.com>2026-03-09 00:15:13 +0530
committerkumvijaya <kumvijaya@gmail.com>2026-03-09 00:15:13 +0530
commita8c4094e7b2fbae41bf8a77628966912b9e2a43d (patch)
tree2d605c952e1d35569fa6a9bb70f90c28f1a454a5 /.github/workflows
parenta0a3f1a192b5bd39363c016ba7b10d8e2e5bb18b (diff)
downloadvyatta-bash-a8c4094e7b2fbae41bf8a77628966912b9e2a43d.tar.gz
vyatta-bash-a8c4094e7b2fbae41bf8a77628966912b9e2a43d.zip
T8365: enabled PR mirror
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr-mirror-repo-sync.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml
index e69de29..88fb563 100644
--- a/.github/workflows/pr-mirror-repo-sync.yml
+++ b/.github/workflows/pr-mirror-repo-sync.yml
@@ -0,0 +1,35 @@
+name: PR Mirror and Repo Sync
+
+on:
+ pull_request_target:
+ types: [closed]
+ branches: [current]
+ workflow_dispatch:
+ inputs:
+ sync_branch:
+ description: 'Branch to mirror'
+ required: true
+ default: 'current'
+ type: choice
+ options:
+ - current
+
+permissions:
+ pull-requests: write
+ contents: write
+ issues: write
+
+jobs:
+ call-pr-mirror-repo-sync:
+ if: |
+ github.repository_owner == 'vyos' &&
+ (
+ github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
+ )
+ uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current
+ with:
+ sync_branch: ${{ github.event.inputs.sync_branch || 'current' }}
+ secrets:
+ PAT: ${{ secrets.PAT }}
+ REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}