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 committed Mar 27, 2024
1 parent 20902d4 commit 3e5d2f8
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +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' }}
name: Code Style
uses: TheDragonCode/.github/.github/workflows/code-style.yml@main

0 comments on commit 3e5d2f8

Please sign in to comment.