Skip to content

Commit f917317

Browse files
committed
Fix tag detection for manual triggers
1 parent 51951a2 commit f917317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/aur-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
2323
# Get the latest tag when manually triggered
2424
git fetch --tags
25-
TAG=$(git describe --tags --abbrev=0)
25+
TAG=$(git tag --sort=-version:refname | head -n1)
2626
else
2727
TAG="${GITHUB_REF_NAME}"
2828
fi

0 commit comments

Comments
 (0)