fix docs workflow II #55
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: Docs | |
on: | |
push: | |
branches-ignore: | |
- develop | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set git user | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
- name: phpDocumentor generate | |
run: docker run --rm -v $(pwd):/data phpdoc/phpdoc run -d ./src -t ./docs/reference --template=.phpdoc/templates | |
- name: commit generated phpdocs | |
run: | | |
git add . -f | |
git diff-index --quiet HEAD || git commit -m "update phpdoc" && git push |