File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
201201
2022021 . Update ` EDITORS.md ` on ` main `
2032032 . Merge ` main ` into ` dev ` and ` dev ` into ` vX.Y-dev ` via PRs
204- - Sync PRs are automatically created by workflows ` sync-main-to-dev ` and ` sync-dev-to-vX.Y-dev `
204+ - sync PRs are automatically created by workflows ` sync-main-to-dev ` and ` sync-dev-to-vX.Y-dev `
2052053 . Prepare spec files in ` vX.Y-dev `
206206 - ` npm run format-markdown `
207207 - ` npm run build-src `
@@ -213,6 +213,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
213213 - copy ` EDITORS.md ` to ` versions/X.Y.Z-editors.md `
214214 - delete ` src/schemas `
215215 - delete ` tests/schema `
216+ - bash script ` scripts/adjust-release-branch.sh ` performs these steps
2162175 . Merge ` vX.Y.Z-rel ` into ` main ` via PR
217218 - this PR should only add files ` versions/X.Y.Z.md ` and ` versions/X.Y.Z-editors.md `
218219
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Author: @ralfhandl
4+
5+ # Run this script from the root of the repo. It is designed to be run manually in a release branch.
6+
7+ branch=$( git branch --show-current)
8+
9+ if [[ ! $branch =~ ^v[0-9]+\. [0-9]+\. [0-9]+-rel$ ]]; then
10+ echo " This script is intended to be run from a release branch, e.g. v3.1.2-rel"
11+ exit 1
12+ fi
13+
14+ vVersion=$( basename " $branch " " -rel" )
15+ version=${vVersion: 1}
16+ echo Prepare release of $version
17+
18+ cp EDITORS.md versions/$version -editors.md
19+ mv src/oas.md versions/$version .md
20+ rm -r src/schemas
21+ rm -r tests/schema
You can’t perform that action at this time.
0 commit comments