Skip to content

Merge pull request #334 from Laravel-Lang/dependabot/github_actions/m… #158

Merge pull request #334 from Laravel-Lang/dependabot/github_actions/m…

Merge pull request #334 from Laravel-Lang/dependabot/github_actions/m… #158

Workflow file for this run

name: Code Style
on: [ push, pull_request ]
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@v3
with:
github_token: ${{ secrets.COMPOSER_TOKEN }}
fix: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
verbose: true