File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2020 fi
2121 echo "VERSION=$major_minor.$((patch + 1))" >> $GITHUB_ENV
2222
23+ - name : Check change log has been updated
24+ run : |
25+ if ! grep --quiet "^## Version $VERSION" CHANGELOG.md; then
26+ echo the change log needs to be updated
27+ exit 1
28+ fi
29+
2330 - name : Update version
2431 run : |
2532 sed -ri "s/[0-9]+\.[0-9]+\.[0-9]+/$VERSION/" version.gradle.kts
Original file line number Diff line number Diff line change 33 workflow_dispatch :
44
55jobs :
6+ prereqs :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - run : |
10+ version=$(.github/scripts/get-version.sh)
11+ version=${version//-SNAPSHOT/}
12+ if ! grep --quiet "^## Version $version" CHANGELOG.md; then
13+ echo the change log needs to be updated
14+ exit 1
15+ fi
16+
617 create-pull-request-against-release-branch :
718 runs-on : ubuntu-latest
19+ needs : prereqs
820 steps :
921 - uses : actions/checkout@v3
1022
4456
4557 create-pull-request-against-main :
4658 runs-on : ubuntu-latest
59+ needs : prereqs
4760 steps :
4861 - uses : actions/checkout@v3
4962
You can’t perform that action at this time.
0 commit comments