File tree 11 files changed +48
-20
lines changed
11 files changed +48
-20
lines changed Original file line number Diff line number Diff line change 41
41
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
42
42
--head $branch \
43
43
--base $GITHUB_REF_NAME \
44
- --label patch-release
44
+ --label backport
Original file line number Diff line number Diff line change 16
16
with :
17
17
CORE_REPO_SHA : ${{ github.sha }}
18
18
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 ||
21
21
' main'
22
22
) || 'main' }}
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env :
17
17
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.
18
22
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 ||
21
25
' main'
22
26
) || 'main' }}
23
27
PIP_EXISTS_ACTION : w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env :
17
17
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.
18
22
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 ||
21
25
' main'
22
26
) || 'main' }}
23
27
PIP_EXISTS_ACTION : w
Original file line number Diff line number Diff line change 78
78
--body "$message." \
79
79
--head $branch \
80
80
--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:
104
104
--body "$message." \
105
105
--head $branch \
106
106
--base $RELEASE_BRANCH_NAME \
107
- --label release
107
+ --label prepare- release
108
108
109
109
create-pull-request-against-main :
110
110
runs-on : ubuntu-latest
@@ -185,4 +185,4 @@ jobs:
185
185
--body "$body" \
186
186
--head $branch \
187
187
--base main \
188
- --label release
188
+ --label prepare- release
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env:
17
17
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.
18
22
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 ||
21
25
'main'
22
26
) || 'main' }}{% endraw %}
23
27
PIP_EXISTS_ACTION: w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env:
17
17
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.
18
22
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 ||
21
25
'main'
22
26
) || 'main' }}{% endraw %}
23
27
PIP_EXISTS_ACTION: w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env:
17
17
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.
18
22
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 ||
21
25
'main'
22
26
) || 'main' }}{% endraw %}
23
27
PIP_EXISTS_ACTION: w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env :
17
17
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.
18
22
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 ||
21
25
' main'
22
26
) || 'main' }}
23
27
PIP_EXISTS_ACTION : w
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ concurrency:
15
15
16
16
env :
17
17
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.
18
22
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 ||
21
25
' main'
22
26
) || 'main' }}
23
27
PIP_EXISTS_ACTION : w
You can’t perform that action at this time.
0 commit comments