summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cla-check.yml19
-rw-r--r--.github/workflows/cleanup-mirror-pr-branch.yml16
-rw-r--r--.github/workflows/mirror-pr-and-sync.yml21
-rw-r--r--.github/workflows/pr-mirror-repo-sync.yml28
-rw-r--r--.github/workflows/trigger-pr-mirror-repo-sync.yml18
5 files changed, 47 insertions, 55 deletions
diff --git a/.github/workflows/cla-check.yml b/.github/workflows/cla-check.yml
new file mode 100644
index 000000000..3c1aeee67
--- /dev/null
+++ b/.github/workflows/cla-check.yml
@@ -0,0 +1,19 @@
+name: "CLA Check"
+
+permissions:
+ actions: write
+ contents: read
+ pull-requests: write
+ statuses: write
+
+on:
+ pull_request:
+ types: [opened, synchronize, closed]
+ issue_comment:
+ types: [created]
+
+jobs:
+ call-cla-assistant:
+ uses: vyos/vyos-cla-signatures/.github/workflows/cla-reusable.yml@current
+ secrets:
+ CLA_PAT: ${{ secrets.CLA_PAT }}
diff --git a/.github/workflows/cleanup-mirror-pr-branch.yml b/.github/workflows/cleanup-mirror-pr-branch.yml
deleted file mode 100644
index a62e44b24..000000000
--- a/.github/workflows/cleanup-mirror-pr-branch.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: Cleanup pr mirror branch
-
-on:
- pull_request:
- types: [closed]
- branches:
- - current
-
-permissions:
- contents: write
-
-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
deleted file mode 100644
index 120e116d4..000000000
--- a/.github/workflows/mirror-pr-and-sync.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-name: Create Mirror PR and Repo Sync
-on:
- workflow_dispatch:
- inputs:
- 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:
- sync_branch: ${{ inputs.sync_branch }}
- secrets:
- PAT: ${{ secrets.PAT }}
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 }}
diff --git a/.github/workflows/trigger-pr-mirror-repo-sync.yml b/.github/workflows/trigger-pr-mirror-repo-sync.yml
deleted file mode 100644
index 978be0582..000000000
--- a/.github/workflows/trigger-pr-mirror-repo-sync.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Trigger Mirror PR and Repo Sync
-on:
- pull_request_target:
- types:
- - closed
- branches:
- - 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/trigger-pr-mirror-repo-sync.yml@current
- secrets: inherit