From 7063d4c8519caca6fd55851275f1f332c2236e1c Mon Sep 17 00:00:00 2001 From: wenyt <75360946+wenytang-ms@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:16:21 +0800 Subject: [PATCH] ci: update cherrypick condition (#12894) --- .github/workflows/lint-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 2605e41360..75d86513ce 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -173,7 +173,7 @@ jobs: extra_args: --only-verified create-cherry-pick-issue: - if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true && !contains(github.event.pull_request.labels.*.name, 'cherry-pick-hotfix') }} + if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.base.ref, 'release') && !contains(github.event.pull_request.labels.*.name, 'cherry-pick-hotfix') }} runs-on: ubuntu-latest permissions: contents: read