2021-08-09 14:21:08 +00:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-09-19 12:52:32 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2021-08-09 14:21:08 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
eslint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup node
|
2022-02-25 09:16:57 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-08-09 14:21:08 +00:00
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
- name: ESLint
|
2021-09-19 12:52:32 +00:00
|
|
|
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
|
2022-02-23 10:08:01 +00:00
|
|
|
uses: ad-m/github-push-action@a3fd843e49cd58d296bdd2431c4853569a1b900f
|
2021-09-19 12:52:32 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: 'main'
|