File tree Expand file tree Collapse file tree 11 files changed +48
-12
lines changed
Expand file tree Collapse file tree 11 files changed +48
-12
lines changed Original file line number Diff line number Diff line change 4040 gh pr create --title "[$GITHUB_REF_NAME] $title" \
4141 --body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
4242 --head $branch \
43- --base $GITHUB_REF_NAME
43+ --base $GITHUB_REF_NAME \
44+ --label patch-release
Original file line number Diff line number Diff line change 1515 uses : open-telemetry/opentelemetry-python-contrib/.github/workflows/core_contrib_test_0.yml@main
1616 with :
1717 CORE_REPO_SHA : ${{ github.sha }}
18- CONTRIB_REPO_SHA : main
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 ||
21+ ' main'
22+ ) || 'main' }}
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ concurrency:
1515
1616env :
1717 CORE_REPO_SHA : main
18- CONTRIB_REPO_SHA : main
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 ||
21+ ' main'
22+ ) || 'main' }}
1923 PIP_EXISTS_ACTION : w
2024
2125jobs :
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ concurrency:
1515
1616env :
1717 CORE_REPO_SHA : main
18- CONTRIB_REPO_SHA : main
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 ||
21+ ' main'
22+ ) || 'main' }}
1923 PIP_EXISTS_ACTION : w
2024
2125jobs :
Original file line number Diff line number Diff line change 7777 gh pr create --title "[$GITHUB_REF_NAME] $message" \
7878 --body "$message." \
7979 --head $branch \
80- --base $GITHUB_REF_NAME
80+ --base $GITHUB_REF_NAME \
81+ --label release
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ jobs:
103103 gh pr create --title "[$RELEASE_BRANCH_NAME] $message" \
104104 --body "$message." \
105105 --head $branch \
106- --base $RELEASE_BRANCH_NAME
106+ --base $RELEASE_BRANCH_NAME \
107+ --label release
107108
108109 create-pull-request-against-main :
109110 runs-on : ubuntu-latest
@@ -183,4 +184,5 @@ jobs:
183184 gh pr create --title "$message" \
184185 --body "$body" \
185186 --head $branch \
186- --base main
187+ --base main \
188+ --label release
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ concurrency:
1515
1616env:
1717 CORE_REPO_SHA: main
18- CONTRIB_REPO_SHA: main
18+ 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 ||
21+ 'main'
22+ ) || 'main' }}{% endraw %}
1923 PIP_EXISTS_ACTION: w
2024
2125jobs:
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ concurrency:
1515
1616env:
1717 CORE_REPO_SHA: main
18- CONTRIB_REPO_SHA: main
18+ 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 ||
21+ 'main'
22+ ) || 'main' }}{% endraw %}
1923 PIP_EXISTS_ACTION: w
2024
2125jobs:
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ concurrency:
1515
1616env:
1717 CORE_REPO_SHA: main
18- CONTRIB_REPO_SHA: main
18+ 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 ||
21+ 'main'
22+ ) || 'main' }}{% endraw %}
1923 PIP_EXISTS_ACTION: w
2024
2125jobs:
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ concurrency:
1515
1616env :
1717 CORE_REPO_SHA : main
18- CONTRIB_REPO_SHA : main
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 ||
21+ ' main'
22+ ) || 'main' }}
1923 PIP_EXISTS_ACTION : w
2024
2125jobs :
You can’t perform that action at this time.
0 commit comments