Skip to content

Commit eb82c27

Browse files
Update code-style.yml
1 parent 4cb9254 commit eb82c27

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/code-style.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@ jobs:
3434
- name: Publish config files
3535
run: codestyle pint 8.2
3636

37-
- name: Checking info
38-
run: |
39-
echo "CAN_FIX: $CAN_FIX"
40-
echo "env.CAN_FIX: ${{ env.CAN_FIX }}"
41-
echo ${{ env.CAN_FIX }}
42-
4337
- name: Normalize composer.json
44-
if: env.CAN_FIX == true
38+
if: $CAN_FIX == true
4539
run: composer normalize
4640

4741
- name: Code-style
@@ -53,7 +47,7 @@ jobs:
5347
fi
5448
5549
- name: Collect changed files
56-
if: env.CAN_FIX == true
50+
if: $CAN_FIX == true
5751
id: changed_php
5852
run: |
5953
git config --global --add safe.directory "$GITHUB_WORKSPACE"
@@ -66,7 +60,7 @@ jobs:
6660
fi
6761
6862
- name: Upload changed files
69-
if: env.CAN_FIX == true && steps.changed_php.outputs.files != ''
63+
if: $CAN_FIX == true && steps.changed_php.outputs.files != ''
7064
uses: actions/upload-artifact@v4
7165
with:
7266
name: fixes-php
@@ -122,7 +116,7 @@ jobs:
122116
fi
123117
124118
- name: Remove node_modules
125-
if: env.CAN_FIX == true
119+
if: $CAN_FIX == true
126120
run: rm -rf node_modules
127121

128122
- name: Remove package.json
@@ -132,7 +126,7 @@ jobs:
132126
rm package-lock.json
133127
134128
- name: Collect changed files
135-
if: env.CAN_FIX == true
129+
if: $CAN_FIX == true
136130
id: changed_node
137131
run: |
138132
git config --global --add safe.directory "$GITHUB_WORKSPACE"
@@ -145,7 +139,7 @@ jobs:
145139
fi
146140
147141
- name: Upload changed files
148-
if: env.CAN_FIX == true && steps.changed_node.outputs.files != ''
142+
if: $CAN_FIX == true && steps.changed_node.outputs.files != ''
149143
uses: actions/upload-artifact@v4
150144
with:
151145
name: fixes-node

0 commit comments

Comments
 (0)