Skip to content

Commit ff61eb2

Browse files
committed
fixup! ci: Do release tagging in CI and add --draft support
1 parent 277dc0c commit ff61eb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/release.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if [[ -z $increment ]]; then
8888
fi
8989

9090
# Make sure the repository is up-to-date before generating release notes.
91-
log "Fetching main and tags from origin..."
91+
log "Fetching $branch and tags from origin..."
9292
git fetch --quiet --tags origin "$branch"
9393

9494
# Resolve to the latest ref on origin/main unless otherwise specified.
@@ -104,7 +104,6 @@ fi
104104
mapfile -t versions < <(gh api -H "Accept: application/vnd.github+json" /repos/coder/coder/git/refs/tags -q '.[].ref | split("/") | .[2]' | grep '^v' | sort -r -V)
105105
old_version=${versions[0]}
106106

107-
log "Checking commit metadata for changes since $old_version..."
108107
# shellcheck source=scripts/release/check_commit_metadata.sh
109108
source "$SCRIPT_DIR/release/check_commit_metadata.sh" "$old_version" "$ref"
110109

0 commit comments

Comments
 (0)