diff options
author | kumvijaya <kuvmijaya@gmail.com> | 2025-01-22 13:31:30 +0530 |
---|---|---|
committer | kumvijaya <kuvmijaya@gmail.com> | 2025-01-22 13:31:30 +0530 |
commit | a51d0ca023ac945dc90c95a8d673b80598163029 (patch) | |
tree | a69a32a15cf1237574047f96de4e4c3f4c045fb3 | |
parent | 832ed9122a0a602cadabe24457e9d64272a3d861 (diff) | |
download | vyos-1x-T7064-add-mirror-workflow-current.tar.gz vyos-1x-T7064-add-mirror-workflow-current.zip |
T7064: added pr mirror related workflows to currentT7064-add-mirror-workflow-current
-rw-r--r-- | .github/workflows/cleanup-mirror-pr-branch.yml | 1 | ||||
-rw-r--r-- | .github/workflows/mirror-pr-and-sync.yml | 26 | ||||
-rw-r--r-- | .github/workflows/trigger-pr-mirror-repo-sync.yml | 1 |
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..7547b8e1f 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' uses: vyos/.github/.github/workflows/trigger-pr-mirror-repo-sync.yml@current secrets: inherit |