Skip to content

Commit 3a77c29

Browse files
committed
Fix updating the v1 branch on automated releases
* Fixes #618
1 parent 382d786 commit 3a77c29

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ jobs:
1818
with:
1919
ruby-version: '3.3'
2020
- run: ruby release.rb
21+
# The same as the update-v1-branch.yml workflow.
22+
# That workflow is not triggered by the release created above because of
23+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
24+
- run: git push origin HEAD:v1

.github/workflows/update-v1-branch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update the v1 branch when a release is published
1+
name: Update the v1 branch when a release is published manually
22
on:
33
release:
44
types: [published]

0 commit comments

Comments
 (0)