summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNicolas Vandamme <n.vandamme@firis-system.lu>2025-09-01 16:59:44 +0200
committerNicolas Vandamme <n.vandamme@firis-system.lu>2025-09-01 16:59:44 +0200
commitb9f60711392463af1892a30472fba6622a73390a (patch)
tree7b7f7942ddb2bc966b917834e16bc6d2b80baa75 /.github/workflows
parent4f0f02e9e38183850021f9b9e19caab3c3062233 (diff)
parentb759dad71c358ea8772ab4973e71660c10a12524 (diff)
downloadvyos-1x-b9f60711392463af1892a30472fba6622a73390a.tar.gz
vyos-1x-b9f60711392463af1892a30472fba6622a73390a.zip
Merge branch 'current' into current
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cleanup-mirror-pr-branch.yml1
-rw-r--r--.github/workflows/mirror-pr-and-sync.yml26
-rw-r--r--.github/workflows/trigger-pr-mirror-repo-sync.yml1
3 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/cleanup-mirror-pr-branch.yml b/.github/workflows/cleanup-mirror-pr-branch.yml
index bbe6aa2f2..a62e44b24 100644
--- a/.github/workflows/cleanup-mirror-pr-branch.yml
+++ b/.github/workflows/cleanup-mirror-pr-branch.yml
@@ -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
diff --git a/.github/workflows/mirror-pr-and-sync.yml b/.github/workflows/mirror-pr-and-sync.yml
new file mode 100644
index 000000000..48a67a43f
--- /dev/null
+++ b/.github/workflows/mirror-pr-and-sync.yml
@@ -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 }}
diff --git a/.github/workflows/trigger-pr-mirror-repo-sync.yml b/.github/workflows/trigger-pr-mirror-repo-sync.yml
index d5e8ce3b4..f74895987 100644
--- a/.github/workflows/trigger-pr-mirror-repo-sync.yml
+++ b/.github/workflows/trigger-pr-mirror-repo-sync.yml
@@ -8,5 +8,6 @@ on:
jobs:
call-trigger-mirror-pr-repo-sync:
+ if: github.repository_owner == 'vyos' && github.event.pull_request.merged == true
uses: vyos/.github/.github/workflows/trigger-pr-mirror-repo-sync.yml@current
secrets: inherit