Skip to content

Commit 29b4fa3

Browse files
[4.x] Simplify workflow by reusing shared code style action configuration
1 parent 5c99f49 commit 29b4fa3

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

.github/workflows/code-style.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +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@v6
14-
15-
- name: Check the code style
16-
uses: TheDragonCode/codestyler@v5
17-
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}
18-
19-
- name: Fix the code style
20-
uses: TheDragonCode/codestyler@v5
21-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
22-
with:
23-
github_token: ${{ secrets.COMPOSER_TOKEN }}
24-
fix: true
8+
check:
9+
uses: TheDragonCode/.github/.github/workflows/code-style.yml@main

0 commit comments

Comments
 (0)