Skip to content

Commit 3d43728

Browse files
fix: Don't tag release branch during dry-run (#388)
Aligning with [ci repository](eclipse-zenoh/ci#239) to not tag the repo when we are running release dry-run
1 parent c112f36 commit 3d43728

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Bump and tag project
4848
run: bash ci/scripts/bump-and-tag.bash
4949
env:
50+
LIVE_RUN: ${{ inputs.live-run || false }}
5051
VERSION: ${{ steps.create-release-branch.outputs.version }}
5152
BUMP_DEPS_VERSION: ${{ inputs.zenoh-version }}
5253
BUMP_DEPS_PATTERN: ${{ inputs.zenoh-version && 'zenoh.*' || '' }}

ci/scripts/bump-and-tag.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -xeo pipefail
44

5+
readonly live_run=${LIVE_RUN:-false}
56
# Release number
67
version=${VERSION:?input VERSION is required}
78
# Dependencies' pattern
@@ -65,7 +66,9 @@ if [[ "$bump_deps_pattern" != '' ]]; then
6566
fi
6667
fi
6768

68-
git tag --force "$version" -m "v$version"
69+
if [[ ${live_run} ]]; then
70+
git tag --force "$version" -m "v$version"
71+
fi
6972
git log -10
7073
git show-ref --tags
7174
git push origin

0 commit comments

Comments
 (0)