Skip to content

Commit

Permalink
Merge pull request #772 from ZettaScaleLabs/no-tag-in-dry-run
Browse files Browse the repository at this point in the history
fix: No tag in dry run
  • Loading branch information
Mallets authored Nov 7, 2024
2 parents 7cffd69 + c8e60ca commit 0085e43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
- name: Bump and tag project
run: bash ci/scripts/bump-and-tag.bash
env:
LIVE_RUN: ${{ inputs.live-run || false }}
VERSION: ${{ steps.create-release-branch.outputs.version }}
GIT_USER_NAME: eclipse-zenoh-bot
GIT_USER_EMAIL: [email protected]
Expand Down
5 changes: 4 additions & 1 deletion ci/scripts/bump-and-tag.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -xeo pipefail

readonly live_run=${LIVE_RUN:-false}
# Release number
readonly version=${VERSION:-input VERSION is required}
# Git actor name
Expand All @@ -18,7 +19,9 @@ export GIT_COMMITTER_EMAIL=$git_user_email
printf '%s' "$version" > version.txt

git commit version.txt -m "chore: Bump version to $version"
git tag --force "$version" -m "v$version"
if [[ ${live_run} ]]; then
git tag --force "$version" -m "v$version"
fi
git log -10
git show-ref --tags
git push --force origin
Expand Down

0 comments on commit 0085e43

Please sign in to comment.