Skip to content

Commit e26e982

Browse files
committed
github-action: fix branch name in release stage
1 parent 2375682 commit e26e982

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-on-merge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3)
2323
PATCH=$(($LASTPATCH+1))
2424
echo "::set-output name=tagname::2.1.${PATCH}"
25+
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
26+
2527
- name: Set up Ruby
2628
uses: ruby/setup-ruby@v1
2729
with:
@@ -36,5 +38,5 @@ jobs:
3638
with:
3739
token: ${{ secrets.GITHUB_TOKEN }}
3840
tag: ${{ steps.compute-tag.outputs.tagname }}
39-
commit: main
41+
commit: ${{ steps.compute-tag.outputs.branch }}
4042
artifacts: './progit.epub,./progit.mobi,./progit.pdf,./progit.html'

0 commit comments

Comments
 (0)