-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1.25 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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