Skip to content

Commit 0814765

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

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/lint.yml

Lines changed: 8 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

@@ -98,11 +96,13 @@ jobs:
9896
continue-on-error: true
9997

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

0 commit comments

Comments
 (0)