Skip to content

Commit

Permalink
More accurate tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Apr 5, 2024
1 parent a640c4b commit 5e80311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/git-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5e80311

Please sign in to comment.