mirror of
https://github.com/MedzikUser/gatsby-pingbot
synced 2024-08-15 03:20:27 +00:00
36 lines
923 B
YAML
36 lines
923 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
eslint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn
|
|
- name: 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@7257a3a6d53a448e11c6f52a112838c57d739d86
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: 'main'
|