This repository was archived by the owner on Aug 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change 88 fix :
99 runs-on : ubuntu-latest
1010
11- permissions :
12- contents : write
13-
1411 steps :
1512 - uses : actions/checkout@v4
1613 - uses : pnpm/action-setup@v4
@@ -22,21 +19,18 @@ jobs:
2219 cache : pnpm
2320 - run : pnpm install
2421 - run : pnpm run lint:fix
25- - run : |
26- git add .
27- git status
2822
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
3428
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'
3834
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