diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-03-09 19:21:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 19:21:01 +0100 |
| commit | d751342e29e3c8e33174967ad54a67c3484f9154 (patch) | |
| tree | 2d605c952e1d35569fa6a9bb70f90c28f1a454a5 /.github | |
| parent | 3ac661e3d2e8a103b99d7fb7b5a5f074d644a697 (diff) | |
| parent | a8c4094e7b2fbae41bf8a77628966912b9e2a43d (diff) | |
| download | vyatta-bash-d751342e29e3c8e33174967ad54a67c3484f9154.tar.gz vyatta-bash-d751342e29e3c8e33174967ad54a67c3484f9154.zip | |
Merge pull request #22 from vyos/T8365-enable-pr-mirror
T8365: enabled PR mirror
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/pr-mirror-repo-sync.yml | 35 |
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 new file mode 100644 index 0000000..88fb563 --- /dev/null +++ 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 }} |
