From fc5c5385705fce3149ad52817b2744e53e3b852c Mon Sep 17 00:00:00 2001 From: Willy Date: Wed, 1 Feb 2023 22:06:52 +0100 Subject: [PATCH] try to fix git describe on gha - seems like actions/checkout doesn't fetch tags by default --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6091aa5b..c3aedd39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,10 @@ jobs: node_version: 16.14.0 steps: - 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 run: | TAG=$(git describe --tags)