Skip to content

Commit 0efdc65

Browse files
authored
Merge pull request #5011 from ralfhandl/main-adjust-release-history-date
2 parents e403595 + e337060 commit 0efdc65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/adjust-release-branch.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Run this script from the root of the repo. It is designed to be run manually in a release branch.
66

77
branch=$(git branch --show-current)
8+
today=$(date +%Y-%m-%d)
89

910
if [[ ! $branch =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rel$ ]]; then
1011
echo "This script is intended to be run from a release branch, e.g. v3.1.2-rel"
@@ -16,7 +17,8 @@ version=${vVersion:1}
1617
echo Prepare release of $version
1718

1819
cp EDITORS.md versions/$version-editors.md
19-
mv src/oas.md versions/$version.md
20+
sed "s/| TBD |/| $today |/g" src/oas.md > versions/$version.md
21+
diff -w src/oas.md versions/$version.md
2022
rm -r src
2123
rm -r tests/schema/pass tests/schema/fail
2224
rm tests/schema/schema.test.mjs

0 commit comments

Comments
 (0)