File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
with :
17
- ref : ${{ github.head_ref }}
17
+ ref : ${{ github.ref }}
18
18
- uses : pnpm/action-setup@v4
19
19
with :
20
20
version : latest
@@ -25,17 +25,13 @@ jobs:
25
25
- run : pnpm install
26
26
- run : pnpm run lint:fix
27
27
28
- - id : diff
29
- run : |
30
- if [[ -n $(git status --porcelain) ]]; then
31
- echo 'changes=true' >>"$GITHUB_OUTPUT"
32
- fi
33
-
34
- - if : steps.diff.outputs.changes == 'true'
35
- name : Commit and push
36
- run : |
37
- git config user.name 'github-actions[bot]'
38
- git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
28
+ - uses : qoomon/actions--create-commit@v1
29
+ id : actions--create-commit
30
+ with :
31
+ message : |
32
+ 🎨 pnpm run lint:fix
33
+ github-actions[bot]
34
+ skip-empty : true
39
35
40
- git commit --all --message '🎨 pnpm run lint:fix' --message '[dependabot skip]'
41
- git push
36
+ - if : ${{ steps.actions--create-commit.outputs.commit }}
37
+ run : git push
You can’t perform that action at this time.
0 commit comments