Skip to content

Commit

Permalink
Merge pull request #4311 from vyos/T7064-add-mirror-workflow-current
Browse files Browse the repository at this point in the history
T7064: added pr mirror related workflows to current
  • Loading branch information
c-po authored Jan 22, 2025
2 parents 832ed91 + a51d0ca commit 8088129
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cleanup-mirror-pr-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ permissions:

jobs:
call-delete-branch:
if: github.repository_owner != 'vyos'
uses: vyos/.github/.github/workflows/cleanup-mirror-pr-branch.yml@current
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/mirror-pr-and-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create Mirror PR and Repo Sync
on:
workflow_dispatch:
inputs:
pr_number:
description: 'Source repo PR Number'
required: true
type: string
sync_branch:
description: 'branch to sync'
required: true
type: string

permissions:
pull-requests: write
contents: write

jobs:
call-mirror-pr-and-sync:
if: github.repository_owner != 'vyos'
uses: VyOS-Networks/vyos-reusable-workflows/.github/workflows/mirror-pr-and-sync.yml@main
with:
pr_number: ${{ inputs.pr_number }}
sync_branch: ${{ inputs.sync_branch }}
secrets:
PAT: ${{ secrets.PAT }}
1 change: 1 addition & 0 deletions .github/workflows/trigger-pr-mirror-repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ on:

jobs:
call-trigger-mirror-pr-repo-sync:
if: github.repository_owner == 'vyos'
uses: vyos/.github/.github/workflows/trigger-pr-mirror-repo-sync.yml@current
secrets: inherit

0 comments on commit 8088129

Please sign in to comment.