update workflows

This commit is contained in:
Medzik 2021-09-19 12:52:32 +00:00
parent 3338f48196
commit 88946836ca
1 changed files with 17 additions and 2 deletions

View File

@ -1,8 +1,9 @@
name: Lint
on:
pull_request:
push:
branches:
- main
jobs:
eslint:
@ -18,4 +19,18 @@ jobs:
- name: Install dependencies
run: yarn
- name: ESLint
run: yarn run eslint .
run: yarn lint
- name: Commit changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "awesome-stars"
git add -A
git diff-index --quiet HEAD || git commit -m "📝 Lint"
- name: Pull changes
run: git pull -r
- name: Push changes
uses: ad-m/github-push-action@b007e7b818e33b04afd056e4c4b57ba917145d7a
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'main'