summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr-mirror-repo-sync.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml
index 0f16633..5320e01 100644
--- a/.github/workflows/pr-mirror-repo-sync.yml
+++ b/.github/workflows/pr-mirror-repo-sync.yml
@@ -6,7 +6,7 @@ name: PR Mirror and Repo Sync
on:
pull_request_target:
types: [closed]
- branches: [rolling, production]
+ branches: [rolling]
workflow_dispatch:
inputs:
sync_branch:
@@ -14,13 +14,16 @@ on:
type: string
permissions:
- contents: read
+ contents: write
+ pull-requests: write
+ issues: write
jobs:
call:
if: |
github.repository_owner == 'vyos'
&& (github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch')
+ && vars.MIRROR_ENABLED != 'false'
uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@production
with:
sync_branch: ${{ inputs.sync_branch || github.event.pull_request.base.ref }}