Skip to content

Commit ccb21ec

Browse files
Update code-style.yml
1 parent ca953e0 commit ccb21ec

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,12 +35,12 @@ jobs:
3535
run: codestyle pint 8.2
3636

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

4141
- name: Code-style
4242
run: |
43-
if [ ${{ env.CAN_FIX }} == true ]; then
43+
if [ $CAN_FIX == true ]; then
4444
pint --parallel
4545
else
4646
pint --parallel --test
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Code-style
8989
run: |
90-
if [ ${{ env.CAN_FIX }} == true ]; then
90+
if [ $CAN_FIX == true ]; then
9191
npx @biomejs/biome lint --write
9292
npx @biomejs/biome format --write
9393
else
@@ -96,11 +96,11 @@ jobs:
9696
fi
9797
9898
- name: Remove node_modules
99-
if: ${{ env.CAN_FIX == true }}
99+
if: $CAN_FIX == true
100100
run: rm -rf node_modules
101101

102102
- name: Remove package.json
103-
if: ${{ env.HAS_PACKAGE_JSON == '0' }}
103+
if: env.HAS_PACKAGE_JSON == '0'
104104
run: |
105105
rm package.json
106106
rm package-lock.json
@@ -113,7 +113,7 @@ jobs:
113113
name: Create a PR
114114
runs-on: ubuntu-latest
115115

116-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
116+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
117117

118118
steps:
119119
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)