Skip to content

Commit

Permalink
github-action: fix branch name in release stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jnavila committed Jul 20, 2021
1 parent 2375682 commit e26e982
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3)
PATCH=$(($LASTPATCH+1))
echo "::set-output name=tagname::2.1.${PATCH}"
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -36,5 +38,5 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.compute-tag.outputs.tagname }}
commit: main
commit: ${{ steps.compute-tag.outputs.branch }}
artifacts: './progit.epub,./progit.mobi,./progit.pdf,./progit.html'

0 comments on commit e26e982

Please sign in to comment.