From 5e803111638c342aed7496b7902cb7914e0ddea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 5 Apr 2024 19:34:26 +0200 Subject: [PATCH] More accurate tag detection --- .github/workflows/git-tags.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-tags.yml b/.github/workflows/git-tags.yml index 0036996b..3d1457c9 100644 --- a/.github/workflows/git-tags.yml +++ b/.github/workflows/git-tags.yml @@ -33,7 +33,7 @@ jobs: - name: "Check latest tagged version" run: | - LATEST_TAG="$(git describe --tags --abbrev=0)" + LATEST_TAG="${{ github.ref_name }}" CURRENT_VERSION="v$(php -r 'require __DIR__."/src/Root.php"; echo Cone\Root\Root::VERSION;')" if [ "${LATEST_TAG}" != "${CURRENT_VERSION}" ]; then echo "::error::Latest tag differs from current version"