Skip to content

Commit 13d8ffa

Browse files
authored
Merge pull request #6 from redjax/dev
Update release.yml, attempt to fix exit on getting latest tag action
2 parents ec462e5 + eb53b84 commit 13d8ffa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
run: |
2424
# Get the latest tag and strip the 'v' from the version
2525
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null)
26+
echo "[DEBUG] Latest tag script exit code: $?"
2627
2728
# If no tag exists, start from v1.0
2829
if [[ -z "$latest_tag" ]]; then
@@ -31,9 +32,12 @@ jobs:
3132
git tag $latest_tag
3233
git push origin $latest_tag
3334
fi
35+
echo "[DEBUG] Latest tag exit code: $?"
3436
3537
# Increment the version (e.g., v1.1 -> v1.2)
3638
version_number=$(echo "$latest_tag" | sed 's/^v//')
39+
echo "[DEBUG] SED get version number exit code: $?"
40+
3741
version_array=(${version_number//./ })
3842
major=${version_array[0]}
3943
minor=${version_array[1]}

0 commit comments

Comments
 (0)