Skip to content

Commit bd8c980

Browse files
committed
Set correct branch for releases
1 parent 48cac97 commit bd8c980

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ jobs:
2020
BRANCH="release-${TAG%.*}"
2121
git switch -c "${BRANCH}"
2222
git push origin "${BRANCH}"
23+
- name: Update release target to release branch
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: |
27+
TAG="${GITHUB_REF#refs/tags/}"
28+
BRANCH="release-${TAG%.*}"
29+
# Update the release target_commitish so release-drafter
30+
# (with filter-by-commitish) can find it as the baseline
31+
# when drafting patch releases on the release branch.
32+
gh release edit "${TAG}" --target "${BRANCH}"

0 commit comments

Comments
 (0)