Skip to content

Doxygen Update from SimpleITK/SimpleITK latest #428

Doxygen Update from SimpleITK/SimpleITK latest

Doxygen Update from SimpleITK/SimpleITK latest #428

Workflow file for this run

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'