Skip to content

Commit 0256948

Browse files
authored
fix: use --force to fetch tags (#61)
1 parent cb53e61 commit 0256948

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/global.release.info.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- name: 'Extract version'
3535
id: version
3636
run: |
37-
git fetch --tags -v
38-
VERISON_NAME=$(git for-each-ref --sort=-creatordate --format='%(refname:short)' refs/tags | head -n 1)
37+
git fetch --tags -v --force
38+
VERSION_NAME=$(git for-each-ref --sort=-creatordate --format='%(refname:short)' refs/tags | head -n 1)
3939
if [ "${{ inputs.remove_tag_prefix }}" = "true" ]; then
4040
# Remove the prefix (assuming the prefix is the first part before a number)
41-
VERISON_NAME=$(echo $VERISON_NAME | sed 's/^[^0-9]*//')
41+
VERSION_NAME=$(echo $VERSION_NAME | sed 's/^[^0-9]*//')
4242
fi
43-
echo "version_name=$VERISON_NAME" >> $GITHUB_OUTPUT
44-
echo "Extracted version = $VERISON_NAME"
43+
echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT
44+
echo "Extracted version = $VERSION_NAME"
4545
- name: 'Extract revision number'
4646
id: revision
4747
run: |

0 commit comments

Comments
 (0)