Merge pull request #17 from conduit-innovation/dev-main #7
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: phpDocumentor | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
phpdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run phpdoc | |
run: | | |
docker run --rm -v $(pwd):/data phpdoc/phpdoc:3 | |
- name: Commit docs | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "" | |
git checkout -b docs/main | |
git push --set-upstream origin docs/main | |
git add docs/api -f | |
git commit -m "phpdoc: update build" || echo "No changes to commit" | |
git push | |
git checkout origin/main | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch: docs/main | |
commit-message: "docs: update" | |
delete-branch: true |