Skip to content

Commit 4e0f911

Browse files
committed
fix: script
1 parent 49a46e1 commit 4e0f911

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/99-auto-fix-dependabot-stylelint-updates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -54,7 +54,7 @@ jobs:
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'

0 commit comments

Comments
 (0)