We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1912e commit 07574e6Copy full SHA for 07574e6
.github/workflows/code-style.yml
@@ -5,22 +5,5 @@ on: [ push, pull_request ]
5
permissions: write-all
6
7
jobs:
8
- style:
9
- runs-on: ubuntu-latest
10
-
11
- steps:
12
- - name: Checkout code
13
- uses: actions/checkout@v4
14
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
21
22
- - name: ${{ steps.detect.outputs.name }} the code style
23
- uses: TheDragonCode/codestyler@v5
24
- with:
25
- github_token: ${{ secrets.COMPOSER_TOKEN }}
26
- fix: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
+ check:
+ uses: TheDragonCode/.github/.github/workflows/code-style.yml@main
0 commit comments