Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Feb 10, 2024
1 parent 654c833 commit 7a5038e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check the code style
uses: TheDragonCode/codestyler@v3
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}
- name: Detect job name
id: detect
run: |
NAME=${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'Fix' || 'Check' }}
echo "name=${NAME}" >> $GITHUB_OUTPUT
- name: Fix the code style
- name: ${{ steps.detect.outputs.name }} the code style
uses: TheDragonCode/codestyler@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.CODE_STYLE_TOKEN }}
fix: true
github_token: ${{ secrets.COMPOSER_TOKEN }}
fix: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
```

### Other CI/CD
Expand Down

0 comments on commit 7a5038e

Please sign in to comment.