Skip to content

ci: fix release notes compare link #8581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix new version passed to release notes in release.yaml
  • Loading branch information
mafredri committed Jul 19, 2023
commit 0bbc6d44b59dfd81efb799835c16d3b84c649d27
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
set -euo pipefail
ref=HEAD
old_version="$(git describe --abbrev=0 "$ref^1")"
version="$(./scripts/version.sh)"
version="v$(./scripts/version.sh)"

# Generate notes.
release_notes_file="$(mktemp -t release_notes.XXXXXX)"
Expand Down
5 changes: 4 additions & 1 deletion scripts/release/generate_release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ fi
if [[ -z $new_version ]]; then
error "No new version specified"
fi
if [[ $new_version != v* ]]; then
error "New version must start with a v"
fi
if [[ -z $ref ]]; then
error "No ref specified"
fi
Expand Down Expand Up @@ -149,7 +152,7 @@ image_tag="$(execrelative ../image_tag.sh --version "$new_version")"
echo -e "## Changelog
$changelog

Compare: [\`$old_version...v$new_version\`](https://github.com/coder/coder/compare/$old_version...v$new_version)
Compare: [\`$old_version...$new_version\`](https://github.com/coder/coder/compare/$old_version...$new_version)

## Container image

Expand Down