Fixup GH workflow for releases (#19)

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/21/head
Jonatan Antoni 4 years ago committed by GitHub
parent 8a30e18177
commit b4eff8f037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save