Merge pull request #4553 from Laravel-Lang/projects/translate-ohx7uzz #2981
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Check the code style | |
uses: TheDragonCode/codestyler@v4 | |
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }} | |
- name: Fix the code style | |
uses: TheDragonCode/codestyler@v4 | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.COMPOSER_TOKEN }} | |
fix: true |