Skip to content

Commit e80bde9

Browse files
author
haxwithaxe
committed
Fixed version check github actions workflow
1 parent f632c2c commit e80bde9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/version-check.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,18 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v5
24+
with:
25+
fetch-tags: true
26+
fetch-depth: 0
2427

2528
- name: Get current version
2629
id: get_current_version
27-
run: echo "current_version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
30+
run: |
31+
set -e
32+
echo "Getting version from git repo"
33+
CURRENT_VERSION=$(git describe --tags --abbrev=0)
34+
echo "Current version: $CURRENT_VERSION" >> $GITHUB_STEP_SUMMARY
35+
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
2836
2937
- name: Get remote version
3038
id: get_remote_version

0 commit comments

Comments
 (0)