Skip to content

Commit 07574e6

Browse files
Update code-style.yml
1 parent da1912e commit 07574e6

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.github/workflows/code-style.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,5 @@ on: [ push, pull_request ]
55
permissions: write-all
66

77
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' }}
8+
check:
9+
uses: TheDragonCode/.github/.github/workflows/code-style.yml@main

0 commit comments

Comments
 (0)