Fixup GH workflow for releases

Running the workflow from a tag (triggered by release) leads
to overwriting the tag metadata in the runners working copy.
Hence, the release will not pick up data and changelog, correctly.
By force-fetching all tags all the tag metadata is restored.

Relates to actions/checkout#290
pull/19/head
Jonatan Antoni 4 years ago
parent 8a30e18177
commit 95bdb7c282

@ -17,6 +17,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch tags
if: ${{ github.event_name == 'release' }}
run: |
git fetch --tags --force
- name: Install packages
run: |

Loading…
Cancel
Save