diff options
| author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2026-05-09 22:12:50 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-09 22:12:50 +0530 |
| commit | a63edf0db813e982a0e591589558b9b950d2d4e5 (patch) | |
| tree | 649f05ee12fddd22029694863d641da04445ff37 | |
| parent | a015bf57a778379d15d262c360dfe51a2aa2906e (diff) | |
| download | vyos-live-build-a63edf0db813e982a0e591589558b9b950d2d4e5.tar.gz vyos-live-build-a63edf0db813e982a0e591589558b9b950d2d4e5.zip | |
T8835: added pr mirror workflow
| -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 000000000..88fb563c7 --- /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 }} |
