diff options
| author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2026-05-09 22:15:59 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-09 22:15:59 +0530 |
| commit | 7b3e4d4288db6882d5cc1464aba3f0e33d205a8e (patch) | |
| tree | 1dabe358cf4efc5f7145945e13d17ae5d6a935b9 /.github/workflows | |
| parent | a63edf0db813e982a0e591589558b9b950d2d4e5 (diff) | |
| download | vyos-live-build-7b3e4d4288db6882d5cc1464aba3f0e33d205a8e.tar.gz vyos-live-build-7b3e4d4288db6882d5cc1464aba3f0e33d205a8e.zip | |
T8835: added pr mirror workflow, removed extra spaces
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cla-check.yml | 18 | ||||
| -rw-r--r-- | .github/workflows/pr-mirror-repo-sync.yml | 35 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/cla-check.yml b/.github/workflows/cla-check.yml new file mode 100644 index 000000000..625ff78f8 --- /dev/null +++ b/.github/workflows/cla-check.yml @@ -0,0 +1,18 @@ +name: "CLA Check" + +permissions: + actions: write + contents: read + pull-requests: write + statuses: write + +on: + pull_request_target: + types: [opened, synchronize, closed] + issue_comment: + types: [created] + +jobs: + call-cla-assistant: + uses: vyos/vyos-cla-signatures/.github/workflows/cla-reusable.yml@current + secrets: inherit
\ No newline at end of file diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml new file mode 100644 index 000000000..88fb563c7 --- /dev/null +++ b/.github/workflows/pr-mirror-repo-sync.yml @@ -0,0 +1,35 @@ +name: PR Mirror and Repo Sync + +on: + pull_request_target: + types: [closed] + branches: [current] + workflow_dispatch: + inputs: + sync_branch: + description: 'Branch to mirror' + required: true + default: 'current' + type: choice + options: + - current + +permissions: + pull-requests: write + contents: write + issues: write + +jobs: + call-pr-mirror-repo-sync: + if: | + github.repository_owner == 'vyos' && + ( + github.event_name == 'workflow_dispatch' || + (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true) + ) + uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current + with: + sync_branch: ${{ github.event.inputs.sync_branch || 'current' }} + secrets: + PAT: ${{ secrets.PAT }} + REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} |
