workflows: force tag update to get version

When building from a tag, Github will create a lightweight tag in place
of the proper one when fetching, breaking `git describe`. Force an update
of all tags to avoid this.
This commit is contained in:
Matthias Schiffer 2022-10-16 12:24:48 +02:00
parent 6125b1b027
commit 6605483b4d
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -39,7 +39,7 @@ jobs:
id: 'tag' id: 'tag'
run: | run: |
set -o pipefail set -o pipefail
git fetch --prune --unshallow git fetch --prune --unshallow --tags -f
git describe --abbrev=7 --match='v*' | sed 's/^v/::set-output name=tag::/' git describe --abbrev=7 --match='v*' | sed 's/^v/::set-output name=tag::/'
- name: 'Dependencies (apt)' - name: 'Dependencies (apt)'
@ -101,7 +101,7 @@ jobs:
id: 'tag' id: 'tag'
run: | run: |
set -o pipefail set -o pipefail
git fetch --prune --unshallow git fetch --prune --unshallow --tags -f
git describe --abbrev=7 --match='v*' | sed 's/^v/::set-output name=tag::/' git describe --abbrev=7 --match='v*' | sed 's/^v/::set-output name=tag::/'
- name: 'Install' - name: 'Install'