Skip to content

Commit 33bafea

Browse files
committed
Enable release creation from non-master branches
This just makes the destination of version bump commits dependent on the branch the workflow is running on, instead of always pushing to `master`. This will allow us to run the workflow on release branches as well. Signed-off-by: nscuro <[email protected]>
1 parent 9c6bd07 commit 33bafea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
npm version ${{ github.event.inputs.version-to-bump }} -m "prepare-release: set version to %s"
3838
39-
git push origin "HEAD:refs/heads/master"
39+
git push origin "HEAD:${{ github.ref }}"
4040
4141
- name: Create GitHub Release
4242
env:

0 commit comments

Comments
 (0)