Skip to content

Commit 0229db6

Browse files
authored
Fix release notes generation (#1057)
1 parent 11f55e8 commit 0229db6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
# Bazelisk will download bazel to here.
3131
XDG_CACHE_HOME: ~/.cache/bazel-repo
32-
run: .github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
32+
run: .github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }}
3333
- name: Release
3434
uses: softprops/action-gh-release@v1
3535
with:

.github/workflows/release_prep.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc build //:rules_k
1212
cp bazel-bin/rules_kotlin_release.tgz $ARCHIVE
1313
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')
1414

15-
cat << EOF
15+
# Write the release notes to release_notes.txt
16+
cat > release_notes.txt << EOF
17+
# Release notes for $TAG
1618
## Using Bzlmod with Bazel 6
1719
1820
1. Enable with \`common --enable_bzlmod\` in \`.bazelrc\`.
@@ -24,7 +26,7 @@ bazel_dep(name = "rules_kotlin", version = "${TAG:1}")
2426
2527
## Using WORKSPACE
2628
27-
Paste this snippet into your `WORKSPACE.bazel` file:
29+
Paste this snippet into your \`WORKSPACE.bazel\` file:
2830
2931
\`\`\`starlark
3032
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
@@ -35,5 +37,3 @@ http_archive(
3537
url = "https://github.com/buildfoundation/rules_kotlin/releases/download/${TAG}/${ARCHIVE}",
3638
)
3739
EOF
38-
39-
echo "\`\`\`"

0 commit comments

Comments
 (0)