Simplify hasNodeErrors method (#24) #28
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: Sync GitHub Pages | |
on: | |
push: | |
jobs: | |
sync-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Run Documentation with Gradle | |
run: | | |
./gradlew task documentation | |
- name: Commit and push documentation | |
run: | | |
if [[ `git status --porcelain docs` ]]; then | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
git add docs | |
git commit --signoff -m "Sync documentation" | |
git push | |
else | |
echo "Nothing to commit, documentation is up to date." | |
fi |