Perl v5.40 is released #608
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: Update Documents | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install hugo | |
run: | | |
curl -sSL https://github.com/gohugoio/hugo/releases/download/v0.95.0/hugo_0.95.0_Linux-64bit.tar.gz -o hugo.tar.gz | |
tar xf hugo.tar.gz | |
sudo mv hugo /usr/local/bin/ | |
- name: install doxygen help2man man2html | |
run: sudo apt-get install doxygen help2man man2html gettext | |
- name: generate documents | |
run: .github/update-docs.sh | |
- run: | | |
git config --global user.name "Ichinose Shogo" | |
git config --global user.email shogo82148@gmail.com | |
git add docs mecab/doc mecab/man | |
if [[ "$(git diff --numstat --cached | cut -f1 | xargs echo)" = "1 1" ]]; then | |
echo "maybe only timestamps are updated" | |
exit 0 | |
fi | |
git commit -m "auto generate documents $(date +"%Y-%m-%d %H:%M:%S")" || ( echo "no updates" && exit 0 ) | |
if [[ "$GITHUB_EVENT_NAME" = "push" ]] && [[ "$GITHUB_REF" = "refs/heads/main" ]]; then | |
git push origin main | |
fi |