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:
25
25
if [[ "${{ github.event.pull_request.title }}" =~ "bump stylelint from" ]]; then
26
26
echo "Stylelint update detected."
27
27
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
29
29
echo "Prettier update detected."
30
30
echo "prettier_update=true" >> $GITHUB_ENV
31
31
else
32
32
echo "No Stylelint or prettier updates detected."
33
33
fi
34
34
35
35
- name : Set up Node.js
36
- if : env.stylelint_update == 'true'
36
+ if : env.stylelint_update == 'true' || env.prettier_update == 'true'
37
37
uses : actions/setup-node@v4
38
38
with :
39
39
node-version-file : " .nvmrc"
40
40
41
41
- name : Install dependencies
42
- if : env.stylelint_update == 'true'
42
+ if : env.stylelint_update == 'true' || env.prettier_update == 'true'
43
43
run : |
44
44
npm ci
45
45
54
54
npx --no prettier . --write
55
55
56
56
- name : Commit changes if formatting is done
57
- if : env.stylelint_update == 'true'
57
+ if : env.stylelint_update == 'true' || env.prettier_update == 'true'
58
58
run : |
59
59
git config --global user.name 'github-actions[bot]'
60
60
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
You can’t perform that action at this time.
0 commit comments