File tree Expand file tree Collapse file tree 11 files changed +48
-20
lines changed
Expand file tree Collapse file tree 11 files changed +48
-20
lines changed Original file line number Diff line number Diff line change 4141 --body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
4242 --head $branch \
4343 --base $GITHUB_REF_NAME \
44- --label patch-release
44+ --label backport
Original file line number Diff line number Diff line change 1616 with :
1717 CORE_REPO_SHA : ${{ github.sha }}
1818 CONTRIB_REPO_SHA : ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
19+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
20+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2121 ' main'
2222 ) || 'main' }}
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
1515
1616env :
1717 CORE_REPO_SHA : main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822 CONTRIB_REPO_SHA : ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
23+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2125 ' main'
2226 ) || 'main' }}
2327 PIP_EXISTS_ACTION : w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
1515
1616env :
1717 CORE_REPO_SHA : main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822 CONTRIB_REPO_SHA : ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
23+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2125 ' main'
2226 ) || 'main' }}
2327 PIP_EXISTS_ACTION : w
Original file line number Diff line number Diff line change 7878 --body "$message." \
7979 --head $branch \
8080 --base $GITHUB_REF_NAME \
81- --label release
81+ --label prepare- release
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104104 --body "$message." \
105105 --head $branch \
106106 --base $RELEASE_BRANCH_NAME \
107- --label release
107+ --label prepare- release
108108
109109 create-pull-request-against-main :
110110 runs-on : ubuntu-latest
@@ -185,4 +185,4 @@ jobs:
185185 --body "$body" \
186186 --head $branch \
187187 --base main \
188- --label release
188+ --label prepare- release
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
1515
1616env:
1717 CORE_REPO_SHA: main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822 CONTRIB_REPO_SHA: {% raw %} ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
23+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2125 'main'
2226 ) || 'main' }}{% endraw %}
2327 PIP_EXISTS_ACTION: w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
1515
1616env:
1717 CORE_REPO_SHA: main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822 CONTRIB_REPO_SHA: {% raw %} ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
23+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2125 'main'
2226 ) || 'main' }}{% endraw %}
2327 PIP_EXISTS_ACTION: w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
1515
1616env:
1717 CORE_REPO_SHA: main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822 CONTRIB_REPO_SHA: {% raw %} ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
23+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2125 'main'
2226 ) || 'main' }}{% endraw %}
2327 PIP_EXISTS_ACTION: w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
1515
1616env :
1717 CORE_REPO_SHA : main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
1822 CONTRIB_REPO_SHA : ${{ github.event_name == 'pull_request' && (
19- contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
20- contains(github.event.pull_request.labels.*.name, 'patch-release ') && github.event.pull_request.base.ref ||
23+ contains(github.event.pull_request.labels.*.name, 'prepare- release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport ') && github.event.pull_request.base.ref ||
2125 ' main'
2226 ) || 'main' }}
2327 PIP_EXISTS_ACTION : w
You can’t perform that action at this time.
0 commit comments