Skip to content

Commit df62ee6

Browse files
emdnetoaabmass
andauthored
fix(infra): Backport of patch release changelog to main (#4618)
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> Co-authored-by: Aaron Abbott <aaronabbott@google.com>
1 parent ee5ab29 commit df62ee6

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/prepare-patch-release.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
run: .github/scripts/use-cla-approved-github-bot.sh
111111

112112
- name: Backport patch release changelog to main
113+
id: backport_pr
113114
env:
114115
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
115116
run: |
@@ -121,11 +122,19 @@ jobs:
121122
git fetch origin $release_branch
122123
123124
# Copy the updated CHANGELOG.md from the release branch
124-
git checkout $release_branch -- CHANGELOG.md
125+
git checkout FETCH_HEAD -- CHANGELOG.md
125126
git commit -m "$message"
126127
127128
git push origin HEAD:$branch
128-
gh pr create --title "$message" \
129-
--body "$body" \
130-
--head $branch \
131-
--base main
129+
pr_url=$(gh pr create --title "$message" \
130+
--body "$body" \
131+
--head $branch \
132+
--base main)
133+
echo "pr_url=$pr_url" >> $GITHUB_OUTPUT
134+
135+
- name: Add Skip Changelog label to backport PR
136+
if: steps.backport_pr.outputs.pr_url != ''
137+
env:
138+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139+
run: |
140+
gh pr edit ${{ steps.backport_pr.outputs.pr_url }} --add-label "Skip Changelog"

.github/workflows/prepare-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,4 @@ jobs:
227227
env:
228228
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229229
run: |
230-
gh pr edit ${{ steps.create_main_pr.outputs.pr_url }} --add-label "prepare-release"
230+
gh pr edit ${{ steps.create_main_pr.outputs.pr_url }} --add-label "prepare-release" --add-label "Skip Changelog"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
2020
<!-- changelog start -->
2121

22+
## Version 1.42.1/0.63b1 (2026-05-21)
23+
24+
No significant changes.
25+
2226
## Version 1.42.0/0.63b0 (2026-05-19)
2327

2428
### Added

0 commit comments

Comments
 (0)