mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
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:
parent
6125b1b027
commit
6605483b4d
1 changed files with 2 additions and 2 deletions
4
.github/workflows/MinedMap.yml
vendored
4
.github/workflows/MinedMap.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
|||
id: 'tag'
|
||||
run: |
|
||||
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::/'
|
||||
|
||||
- name: 'Dependencies (apt)'
|
||||
|
@ -101,7 +101,7 @@ jobs:
|
|||
id: 'tag'
|
||||
run: |
|
||||
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::/'
|
||||
|
||||
- name: 'Install'
|
||||
|
|
Loading…
Add table
Reference in a new issue