try to fix git describe on gha - seems like actions/checkout doesn't fetch tags by default

pull/1118/head
Willy 2023-02-01 22:06:52 +01:00
parent 812147a808
commit fc5c538570
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ jobs:
node_version: 16.14.0 node_version: 16.14.0
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: get stable/unstable states - name: fetch tags
# check on https://github.com/actions/checkout/pull/579 occasionally if actions/checkout can do this natively yet
run: git fetch --tags
- name: get version information
id: versions id: versions
run: | run: |
TAG=$(git describe --tags) TAG=$(git describe --tags)