Skip to content

Commit

Permalink
Update code-style.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Mar 27, 2024
1 parent 39ef333 commit 708d352
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 708d352

Please sign in to comment.