Skip to content

Commit 302fdc5

Browse files
committed
modify CI(lint)
1 parent 6b79177 commit 302fdc5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
2523

2624
- name: Setup Git
2725
run: |
@@ -66,7 +64,7 @@ jobs:
6664
thread-comments: update
6765
continue-on-error: true
6866

69-
- name: ESLint (+vue +prettier)
67+
- name: ESLint (+vue +prettier +ts)
7068
run: yarn run eslint --fix --ignore-pattern .gitignore
7169
continue-on-error: true
7270

@@ -99,10 +97,10 @@ jobs:
9997

10098
- name: Create PullRequest
10199
run: |
102-
git branch -f lint
103-
git switch lint
100+
git branch -f lint/${{ github.sha }}
101+
git switch lint/${{ github.sha }}
104102
git add .
105-
git commit -m "lint:${{ github.ref }}"
106-
git push -f origin lint
107-
gh pr create --fill -B main -H lint
103+
git commit -m "lint:${{ github.sha }}"
104+
git push -f origin lint/${{ github.sha }}
105+
gh pr create --fill-verbose -t lint:${{ github.ref }} -B main -H lint/${{ github.sha }} -
108106
continue-on-error: true

0 commit comments

Comments
 (0)