Skip to content

Commit f3c1c89

Browse files
Fix string comparison for CAN_FIX environment variable
1 parent 3bf5a4e commit f3c1c89

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/code-style.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ jobs:
3535
run: codestyle pint 8.2
3636

3737
- name: Normalize composer.json
38-
if: ${{ env.CAN_FIX }} == true
38+
if: ${{ env.CAN_FIX }} == 'true'
3939
run: composer normalize
4040

4141
- name: Fix PHP code-style
42-
if: ${{ env.CAN_FIX }} == true
42+
if: ${{ env.CAN_FIX }} == 'true'
4343
run: pint --parallel
4444

4545
- name: Check PHP code-style
46-
if: ${{ env.CAN_FIX }} == false
46+
if: ${{ env.CAN_FIX }} == 'false'
4747
run: pint --parallel --test
4848

4949
node:
@@ -86,19 +86,19 @@ jobs:
8686
run: codestyle npm
8787

8888
- name: Node code-style
89-
if: ${{ env.CAN_FIX }} == true
89+
if: ${{ env.CAN_FIX }} == 'true'
9090
run: |
9191
npx @biomejs/biome lint --write
9292
npx @biomejs/biome format --write
9393
9494
- name: Node code-style
95-
if: ${{ env.CAN_FIX }} == false
95+
if: ${{ env.CAN_FIX }} == 'false'
9696
run: |
9797
npx @biomejs/biome lint
9898
npx @biomejs/biome format
9999
100100
- name: Remove node_modules
101-
if: ${{ env.CAN_FIX }} == true
101+
if: ${{ env.CAN_FIX }} == 'true'
102102
run: rm -rf node_modules
103103

104104
- name: Remove package.json

0 commit comments

Comments
 (0)