From 71fd5e0f75b9ea08023ef5772fc116ad961a8c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Helmke?= Date: Thu, 14 Dec 2023 16:40:43 +0100 Subject: [PATCH] fetch tags for git describe --- .github/workflows/monitor_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/monitor_release.yml b/.github/workflows/monitor_release.yml index 9b1e7fe93ce..f236b34c42e 100644 --- a/.github/workflows/monitor_release.yml +++ b/.github/workflows/monitor_release.yml @@ -11,6 +11,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: | + git fetch --prune --unshallow --tags latest_release=$(git describe --abbrev=0 --tags | grep -oP "\d+\.\d+\.\d+") cur=$(date +"%Y.%m.%d") if [ "$latest_release" != "$cur" ]; then