Skip to content

Commit 16872af

Browse files
authored
Merge pull request #28 from kumvijaya/current
T7644: mirror workflow refactoring rollout
2 parents 4c63a8e + dff528c commit 16872af

4 files changed

Lines changed: 35 additions & 55 deletions

File tree

.github/workflows/cleanup-mirror-pr-branch.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/mirror-pr-and-sync.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR Mirror and Repo Sync
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
branches: [current]
7+
workflow_dispatch:
8+
inputs:
9+
sync_branch:
10+
description: 'Branch to mirror'
11+
required: true
12+
default: 'current'
13+
type: choice
14+
options:
15+
- current
16+
17+
permissions:
18+
pull-requests: write
19+
contents: write
20+
issues: write
21+
22+
jobs:
23+
call-pr-mirror-repo-sync:
24+
if: |
25+
github.repository_owner == 'vyos' &&
26+
(
27+
github.event_name == 'workflow_dispatch' ||
28+
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
29+
)
30+
uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current
31+
with:
32+
sync_branch: ${{ github.event.inputs.sync_branch || 'current' }}
33+
secrets:
34+
PAT: ${{ secrets.PAT }}
35+
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}

.github/workflows/trigger-pr-mirror-repo-sync.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)