Skip to content

Commit 156465d

Browse files
authored
Merge pull request #156 from ZettaScaleLabs/no-tag-in-dry-run
fix: Don't tag release branch during dry-run
2 parents 10ccdfb + 48ca946 commit 156465d

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
@@ -60,6 +60,7 @@ jobs:
6060
- name: Bump and tag project
6161
run: bash ci/scripts/bump-and-tag.bash
6262
env:
63+
LIVE_RUN: ${{ inputs.live-run || false }}
6364
VERSION: ${{ steps.create-release-branch.outputs.version }}
6465
BUMP_DEPS_VERSION: ${{ inputs.zenoh-version }}
6566
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
readonly version=${VERSION:?input VERSION is required}
78
# Dependencies' pattern
@@ -59,7 +60,9 @@ if [[ "$bump_deps_pattern" != '' ]]; then
5960
fi
6061
fi
6162

62-
git tag --force "$version" -m "v$version"
63+
if [[ ${live_run} ]]; then
64+
git tag --force "$version" -m "v$version"
65+
fi
6366
git log -10
6467
git show-ref --tags
6568
git push origin

0 commit comments

Comments
 (0)