We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f9a5a5 commit cb53e61Copy full SHA for cb53e61
1 file changed
.github/workflows/global.release.info.yml
@@ -34,7 +34,8 @@ jobs:
34
- name: 'Extract version'
35
id: version
36
run: |
37
- VERISON_NAME=${GITHUB_REF#refs/tags/}
+ git fetch --tags -v
38
+ VERISON_NAME=$(git for-each-ref --sort=-creatordate --format='%(refname:short)' refs/tags | head -n 1)
39
if [ "${{ inputs.remove_tag_prefix }}" = "true" ]; then
40
# Remove the prefix (assuming the prefix is the first part before a number)
41
VERISON_NAME=$(echo $VERISON_NAME | sed 's/^[^0-9]*//')
0 commit comments