From 699932978ddac3b08f066884cbb785a3a5b67e39 Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Wed, 9 Jul 2025 23:49:43 +0530 Subject: T7613: pr mirror workflow manual run option added --- .github/workflows/pr-mirror-repo-sync.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml index 5ab350a0e..93248f3c5 100644 --- a/.github/workflows/pr-mirror-repo-sync.yml +++ b/.github/workflows/pr-mirror-repo-sync.yml @@ -5,14 +5,24 @@ on: - 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-pr-mirror-repo-sync: + 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 - secrets: inherit + with: + sync_branch: ${{ inputs.sync_branch }} + secrets: + PAT: ${{ secrets.PAT }} + REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} + REMOTE_REPO: ${{ secrets.REMOTE_REPO }} \ No newline at end of file -- cgit v1.2.3 From df29d5ebc8e644bc18cdf2700de54d1a653677b7 Mon Sep 17 00:00:00 2001 From: kumvijaya Date: Wed, 9 Jul 2025 23:51:21 +0530 Subject: T7613: pr mirror workflow manual run option added --- .github/workflows/pr-mirror-repo-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml index 93248f3c5..184d878d4 100644 --- a/.github/workflows/pr-mirror-repo-sync.yml +++ b/.github/workflows/pr-mirror-repo-sync.yml @@ -17,7 +17,7 @@ permissions: contents: write issues: write jobs: - call-trigger-mirror-pr-repo-sync: + call-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: -- cgit v1.2.3