Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 2cfadb4

Browse files
Craig Furmanburmudar
andauthored
[Backport 5.4.5099] fix(release): remove generate-notes from github r… (#63148)
Generate notes currently generates a changelog all the way from the tag `app-2023` ... which means the content is more than what is allowed by github - hard cap of 125000 characters. (cherry picked from commit 817738a) Also backports https://github.com/sourcegraph/sourcegraph/pull/63119 Co-authored-by: William Bezuidenhout <[email protected]>
1 parent fd1fe42 commit 2cfadb4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ promoteToPublic:
254254
# we need to first fetch the branch because the repo in CI is in a detached state
255255
git fetch origin '+refs/heads/{{git.branch}}:refs/heads/{{git.branch}}'
256256
git checkout {{git.branch}}
257-
git tag {{version}}
258-
git push origin {{git.branch}} --tags
257+
git tag --force {{version}}
258+
# only push a single tag
259+
git push origin tag {{version}}
259260
260261
# Annotate build
261262
cat << EOF | buildkite-agent annotate --style info
@@ -290,7 +291,7 @@ promoteToPublic:
290291
- [Release post](https://sourcegraph.com/blog/release/${month_name}-${current_year})
291292
EndOfText
292293
293-
bazel run //dev/tools:gh -- release create ${version} --latest --verify-tag -t "Sourcegraph ${tag}" --generate-notes --notes "${releasepost}"
294+
bazel run //dev/tools:gh -- release create ${version} --latest --verify-tag -t "Sourcegraph ${tag}" --notes "${releasepost}"
294295
295296
# tag is usually in the format `5.3.2`
296297
# while version is usually the tag prepended with a v, `v5.3.2`
@@ -339,7 +340,7 @@ promoteToPublic:
339340
chmod +x changelog
340341
341342
pr_url=$(./changelog \
342-
--github.token="$DEVX_GH_TOKEN" \
343+
--github.token="$DEVX_SERVICE_GH_TOKEN" \
343344
update-as-pr \
344345
--github.repo="sourcegraph/sourcegraph" \
345346
--output.repo="sourcegraph/docs" \

0 commit comments

Comments
 (0)