Skip to content

Update deploy.yml

Update deploy.yml #126

Workflow file for this run

name: Release Check
on:
pull_request:
branches:
- main
concurrency:
group: release_check
cancel-in-progress: true
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