Release/v0.32.0 #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Check | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
release_check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name : Check documents | |
env: | |
TZ: "Asia/Tokyo" | |
run: | | |
VERSION_NO=$(cat app/main.cpp | grep "app.setApplicationVersion" | grep -oE "[0-9]+.[0-9]+.[0-9]+") | |
# Check download link | |
python3 scripts/updateweb.py temp.html $VERSION_NO | |
echo "" >> temp.html | |
diff -u temp.html web/layouts/shortcodes/download_link.html | |
# Check release not | |
python3 scripts/validate_releasenote.py web/content/docs/release-note.en.md $VERSION_NO | |
python3 scripts/validate_releasenote.py web/content/docs/release-note.ja.md $VERSION_NO | |
- name : Check pullrequest title | |
run: | | |
name="${{ github.event.pull_request.title }}" | |
pattern="^Release/v[0-9]+\.[0-9]+\.[0-9]+$" | |
if [[ $name =~ $pattern ]]; then | |
ret=0 | |
echo ok | |
else | |
ret=1 | |
echo Please format the title of the pull request as "Release/vX.Y.Z". | |
fi | |
exit $ret |