forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 935 Bytes
/
check_fix_push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: check_fix_push
on:
push:
branches:
- '**'
permissions: write-all
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
- run: pnpm install
- run: pnpm run check
- run: pnpm run format
- run: pnpm run lint
- name: Git commit
id: commit
run: |
git config --local user.email github-actions[bot]@users.noreply.github.com
git config --local user.name github-actions[bot]
git status --porcelain
git --no-pager diff
git commit -a -m "chore(actions): check_format_lint"
continue-on-error: true
- name: Git push
uses: ad-m/github-push-action@master
if: ${{ steps.commit.outcome == 'success' }}
with:
branch: ${{ github.ref }}