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 7783374
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
echo Computing next tag number
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=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 7783374

Please sign in to comment.