Merge pull request #550 from Atom-Learning/DS-444-π©π»βπ»-build-extend-aβ¦ #342
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: auto-fix | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
auto-fix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
ref: ${{ github.head_ref }} | |
- name: Setup environment | |
uses: actions/[email protected] | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: yarn install | |
- name: Run ESLint (Library) | |
working-directory: lib | |
run: yarn lint | |
- name: Run Prettier (Library) | |
working-directory: lib | |
run: yarn format | |
- name: Run Prettier (Documentation) | |
working-directory: documentation | |
run: yarn format | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'chore: apply auto-fix changes' |