File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,21 +25,21 @@ jobs:
2525 if [[ "${{ github.event.pull_request.title }}" =~ "bump stylelint from" ]]; then
2626 echo "Stylelint update detected."
2727 echo "stylelint_update=true" >> $GITHUB_ENV
28- else if [[ "${{ github.event.pull_request.title }}" =~ "bump prettier from" ]]; then
28+ elif [[ "${{ github.event.pull_request.title }}" =~ "bump prettier from" ]]; then
2929 echo "Prettier update detected."
3030 echo "prettier_update=true" >> $GITHUB_ENV
3131 else
3232 echo "No Stylelint or prettier updates detected."
3333 fi
3434
3535 - name : Set up Node.js
36- if : env.stylelint_update == 'true'
36+ if : env.stylelint_update == 'true' || env.prettier_update == 'true'
3737 uses : actions/setup-node@v4
3838 with :
3939 node-version-file : " .nvmrc"
4040
4141 - name : Install dependencies
42- if : env.stylelint_update == 'true'
42+ if : env.stylelint_update == 'true' || env.prettier_update == 'true'
4343 run : |
4444 npm ci
4545
5454 npx --no prettier . --write
5555
5656 - name : Commit changes if formatting is done
57- if : env.stylelint_update == 'true'
57+ if : env.stylelint_update == 'true' || env.prettier_update == 'true'
5858 run : |
5959 git config --global user.name 'github-actions[bot]'
6060 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
You can’t perform that action at this time.
0 commit comments