Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release.yml, attempt to fix exit on getting latest tag action #6

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: |
# Get the latest tag and strip the 'v' from the version
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null)
echo "[DEBUG] Latest tag script exit code: $?"

# If no tag exists, start from v1.0
if [[ -z "$latest_tag" ]]; then
Expand All @@ -31,9 +32,12 @@ jobs:
git tag $latest_tag
git push origin $latest_tag
fi
echo "[DEBUG] Latest tag exit code: $?"

# Increment the version (e.g., v1.1 -> v1.2)
version_number=$(echo "$latest_tag" | sed 's/^v//')
echo "[DEBUG] SED get version number exit code: $?"

version_array=(${version_number//./ })
major=${version_array[0]}
minor=${version_array[1]}
Expand Down
Loading