-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (41 loc) · 1.39 KB
/
doxygen.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Doxygen Update from SimpleITK/SimpleITK latest
on:
push: { branches: [ gh-actions ] }
schedule:
# Every day at 9:11 AM UTC or 5:11 AM EST
- cron: '11 9 * * *'
workflow_dispatch:
jobs:
doxygen_update:
env:
doxygen_path: "doxygen/latest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: Download Doxygen from SimpleITK lastest release
run: |
gh release download latest -R SimpleITK/SimpleITK -p SimpleITKDoxygen\*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update latest doxygen
run: |
[ ! -z "${doxygen_path}" ] || exit -1
git rm -rf ${doxygen_path}
mkdir -p ${doxygen_path}
tar -zxvf SimpleITKDoxygen-*.tar.gz -C ${doxygen_path}
- name: Commit Pages update
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions bot for SimpleITK.github.io"
git add ${doxygen_path}
if ( git diff --cached --quiet ${doxygen_path} ); then
echo "No changes to commit"
exit 0
fi
git commit -m "Update Doxygen to ${TAG}"
git push origin ${TARGET_BRANCH}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_BRANCH: 'master'