From a0a3f1a192b5bd39363c016ba7b10d8e2e5bb18b Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Mon, 9 Mar 2026 00:00:11 +0530 Subject: T8365: enabled PR mirror --- .github/workflows/pr-mirror-repo-sync.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/pr-mirror-repo-sync.yml diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3 From a8c4094e7b2fbae41bf8a77628966912b9e2a43d Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Mon, 9 Mar 2026 00:15:13 +0530 Subject: T8365: enabled PR mirror --- .github/workflows/pr-mirror-repo-sync.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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 }} -- cgit v1.2.3