diff options
Diffstat (limited to '.github/workflows/pr-mirror-repo-sync.yml')
-rw-r--r-- | .github/workflows/pr-mirror-repo-sync.yml | 28 |
1 files changed, 28 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..7f0012d18 --- /dev/null +++ b/.github/workflows/pr-mirror-repo-sync.yml @@ -0,0 +1,28 @@ +name: PR Mirror and Repo Sync +on: + pull_request_target: + types: + - closed + branches: + - current + workflow_dispatch: + inputs: + sync_branch: + description: 'branch to sync' + required: false + type: string + default: 'current' +permissions: + pull-requests: write + contents: write + issues: write +jobs: + call-trigger-mirror-pr-repo-sync: + if: github.repository_owner == 'vyos' && github.event.pull_request.merged == true + uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current + with: + sync_branch: ${{ inputs.sync_branch }} + secrets: + PAT: ${{ secrets.PAT }} + REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} + REMOTE_REPO: ${{ secrets.REMOTE_REPO }} |