mirror of
https://github.com/MedzikUser/gatsby-pingbot
synced 2024-08-15 03:20:27 +00:00
update workflows
This commit is contained in:
parent
3338f48196
commit
88946836ca
1 changed files with 17 additions and 2 deletions
19
.github/workflows/lint.yml
vendored
19
.github/workflows/lint.yml
vendored
|
@ -1,8 +1,9 @@
|
||||||
name: Lint
|
name: Lint
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eslint:
|
eslint:
|
||||||
|
@ -18,4 +19,18 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: ESLint
|
- 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'
|
||||||
|
|
Loading…
Reference in a new issue