Analytics documentation update (#69) #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: Format | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
prettier: | |
name: Run Prettier | |
runs-on: ubuntu-latest | |
if: github.actor != '[email protected]' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12' | |
- run: yarn install | |
- name: Run Prettier | |
run: yarn prettier | |
- name: Commit changes | |
run: | | |
git config user.email '[email protected]' | |
git config user.name 'R2U Bot' | |
git add . | |
git diff-index --quiet HEAD || (git commit -m 'Run Prettier - R2U Bot' && git push) |