File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,13 @@ jobs:
1212 - name : Checkout code
1313 uses : actions/checkout@v4
1414
15- - name : Detect job name
16- id : detect
17- run : |
18- [[ ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} ]] && NAME="Fix" || NAME="Check"
19-
20- echo "name=${NAME}" >> $GITHUB_OUTPUT
15+ - name : Check the code style
16+ uses : TheDragonCode/codestyler@v3
17+ if : ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}
2118
22- - name : ${{ steps.detect.outputs.name }} the code style
19+ - name : Fix the code style
2320 uses : TheDragonCode/codestyler@v3
21+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
2422 with :
2523 github_token : ${{ secrets.COMPOSER_TOKEN }}
26- fix : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
24+ fix : true
You can’t perform that action at this time.
0 commit comments