From 0977b7f3227d140f7b390eac19cf223bcb7e1a33 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Thu, 28 Mar 2024 00:24:46 +0300 Subject: [PATCH] Update code-style.yml --- .github/workflows/code-style.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index aacc7227..e910067c 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -6,22 +6,5 @@ permissions: write-all jobs: style: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Detect job name - id: detect - run: | - [[ ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} ]] && NAME="Fix" || NAME="Check" - - echo "name=${NAME}" >> $GITHUB_OUTPUT - - - name: ${{ steps.detect.outputs.name }} the code style - uses: TheDragonCode/codestyler@v4 - with: - github_token: ${{ secrets.COMPOSER_TOKEN }} - fix: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - verbose: true + name: Code Style + uses: TheDragonCode/.github/.github/workflows/code-style.yml@main