-
Notifications
You must be signed in to change notification settings - Fork 1
v prefix #204
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
v prefix #204
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -112,6 +112,7 @@ fi | |
|
|
||
| BRANCH="$(git rev-parse --abbrev-ref HEAD)" | ||
|
|
||
|
|
||
| echo "Latest branch: $BRANCH" | ||
| echo "Latest tag: $LATEST_TAG" | ||
| echo "New tag: $NEW_TAG (files will use ${NEW_FILE_VER})" | ||
|
|
@@ -138,11 +139,14 @@ fi | |
|
|
||
| # Run tests/builds (non-fatal for Python tests) | ||
|
|
||
|
|
||
| # Commit, tag and push | ||
| NEW_TAG="v${NEW_TAG}" | ||
| git commit -m "chore(release): bump to ${NEW_TAG}" || echo "No changes to commit" | ||
|
Comment on lines
143
to
145
|
||
| git tag -a "${NEW_TAG}" -m "Release ${NEW_TAG}" | ||
| echo "Created tag. Please push tag ${NEW_TAG} on branch ${BRANCH}." | ||
|
|
||
| echo "Created tag. Please push tag ${NEW_TAG} on branch ${BRANCH}." | ||
| echo "To push, run:" | ||
| echo git push origin "${BRANCH}" | ||
| echo git push origin "${NEW_TAG}" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script logs
New tag: $NEW_TAGbefore thevprefix is applied later, so the printed “New tag” won’t match the tag that actually gets created (e.g., logs1.2.3but createsv1.2.3). Consider either applying the prefix before the logging, or logging a separateNEW_GIT_TAG/TAG_NAMEvariable that matches what will be pushed.