gatsby-pingbot/.github/workflows/lint.yml

37 lines
923 B
YAML
Raw Permalink Normal View History

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
2022-03-01 20:43:46 +00:00
uses: actions/checkout@v3
2021-08-09 14:21:08 +00:00
- 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
uses: ad-m/github-push-action@9a46ba8d86d3171233e861a4351b1278a2805c83
2021-09-19 12:52:32 +00:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'main'