Skip to content

Commit

Permalink
CI: Releases need git tags for the upload
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Jul 9, 2021
1 parent 4b3cb8f commit 80c9ca9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,22 @@ jobs:
git config --system core.eol lf
- uses: actions/checkout@v2
- run: ruby --version

# Work around issue https://github.com/actions/checkout/issues/290
- name: fetch tag annotations
run: git fetch --force --tags

- run: ruby --version
- name: extract GIT_REF_TAG
shell: cmd
run: ruby -e 'ENV["GITHUB_REF"].sub(/refs\/tags\/(.*)/){ puts "GIT_REF_TAG="+$1 }' >>%GITHUB_ENV%

- name: show GIT_REF_TAG
shell: cmd
run: echo %GIT_REF_TAG%
run: |
echo "%GIT_REF_TAG%"
git tag -l "%GIT_REF_TAG%" "--format=%%(subject)"
git tag -l "%GIT_REF_TAG%" "--format=%%(body)"
- name: stop build not required for release
shell: cmd
Expand Down

0 comments on commit 80c9ca9

Please sign in to comment.