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