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