1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Remove date from changelog release header (#10790)

New changelog release headers now omit the date. These headers are
added automatically when a new release branch is created, and that
rarely ends up being the actual date of the release, so these dates
have all been inaccurate anyway.

The date will be re-added to the changelog later as part of a new
script, after a release has been published.
This commit is contained in:
Mark Stacey 2021-03-31 19:54:29 -02:30 committed by GitHub
parent ff8dd5f6d2
commit 6aee658ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,13 +21,12 @@ version="${CIRCLE_BRANCH/Version-v/}"
if ! grep --quiet --fixed-strings "$version" CHANGELOG.md if ! grep --quiet --fixed-strings "$version" CHANGELOG.md
then then
printf '%s\n' 'Adding this release to CHANGELOG.md' printf '%s\n' 'Adding this release to CHANGELOG.md'
date_str="$(date '+%a %b %d %Y')"
cp CHANGELOG.md{,.bak} cp CHANGELOG.md{,.bak}
update_headers=$(cat <<END update_headers=$(cat <<END
/## Current Develop Branch/ { /## Current Develop Branch/ {
print "## Current Develop Branch\n"; print "## Current Develop Branch\n";
print "## ${version} ${date_str}"; print "## ${version}";
next; next;
} }
{ {