File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed
Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change 1- name : Prettier Formatting Check & Fix
1+ name : Prettier Formatting Check
22
33on :
44 push :
3636 id : check_format
3737 run : |
3838 npm run lint-prettier:check
39- continue-on-error : true # Allows the workflow to continue even if this step fails
4039
41- - name : Fix code formatting with Prettier
42- if : steps.check_format.outcome == 'failure' # Run only if check_format failed
43- run : |
44- npm run lint-prettier:fix
45-
46- - name : Commit changes if Prettier fixed formatting
47- if : steps.check_format.outcome == 'failure' # Run only if check_format failed
48- run : |
49- git config --global user.name "github-actions"
50- git config --global user.email "github-actions@github.com"
51- git add .
52- git commit -m "fix: apply Prettier formatting" || echo "No changes to commit"
53- git push
40+ # - name: Fix code formatting with Prettier
41+ # if: steps.check_format.outcome == 'failure' # Run only if check_format failed
42+ # run: |
43+ # npm run lint-prettier:fix
You can’t perform that action at this time.
0 commit comments