Skip to content

Commit

Permalink
fix: Don't tag release branch during dry-run (#293)
Browse files Browse the repository at this point in the history
Aligning with [ci repository](eclipse-zenoh/ci#239) to not tag the repo when we are running release dry-run
  • Loading branch information
diogomatsubara authored Nov 14, 2024
1 parent e1fd6a2 commit acfdea4
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 @@ -60,6 +60,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 }}
BUMP_DEPS_VERSION: ${{ inputs.zenoh-version }}
BUMP_DEPS_PATTERN: ${{ inputs.zenoh-version && 'zenoh.*' || '' }}
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}
# Dependencies' pattern
Expand Down Expand Up @@ -59,7 +60,9 @@ if [[ "$bump_deps_pattern" != '' ]]; then
fi
fi

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 origin
Expand Down

0 comments on commit acfdea4

Please sign in to comment.