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 @@ -199,7 +199,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
199199
2002001 . Update ` EDITORS.md ` on ` main `
2012012 . Merge ` main ` into ` dev ` and ` dev ` into ` vX.Y-dev ` via PRs
202- - Sync PRs are automatically created by workflows ` sync-main-to-dev ` and ` sync-dev-to-vX.Y-dev `
202+ - sync PRs are automatically created by workflows ` sync-main-to-dev ` and ` sync-dev-to-vX.Y-dev `
2032033 . Prepare spec files in ` vX.Y-dev `
204204 - ` npm run format-markdown `
205205 - ` npm run build-src `
@@ -211,6 +211,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
211211 - copy ` EDITORS.md ` to ` versions/X.Y.Z-editors.md `
212212 - delete ` src/schemas `
213213 - delete ` tests/schema `
214+ - bash script ` scripts/adjust-release-branch.sh ` performs these steps
2142155 . Merge ` vX.Y.Z-rel ` into ` main ` via PR
215216 - this PR should only add files ` versions/X.Y.Z.md ` and ` versions/X.Y.Z-editors.md `
216217
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