🔄 Dependency Update —(deps): Bump peter-evans/create-pull-request from 7 to 8 #119
Workflow file for this run
This file contains hidden or 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: Laravel Pint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| pint: | |
| runs-on: ubuntu-latest | |
| name: Run Laravel Pint | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| coverage: none | |
| tools: composer | |
| - name: Cache Composer packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist --no-progress | |
| - name: Verify PHP & Composer | |
| run: | | |
| php -v | |
| composer -V | |
| ./vendor/bin/pint --version || true | |
| - name: Run Laravel Pint (format check) | |
| id: pint | |
| continue-on-error: true | |
| run: ./vendor/bin/pint --test | |
| - name: Run Pint fix if style issues found | |
| if: steps.pint.outcome == 'failure' | |
| run: | | |
| echo "❌ Kod biçimi hataları bulundu. Düzeltmeler uygulanıyor..." | |
| ./vendor/bin/pint | |
| - name: Create Pull Request for Pint fixes | |
| if: steps.pint.outcome == 'failure' | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.ACTIONS_PAT || secrets.GITHUB_TOKEN }} | |
| commit-message: "chore: apply Pint code style fixes" | |
| title: "đź”§ Laravel Pint - Code Style Fixes" | |
| body: | | |
| This pull request was automatically generated because Laravel Pint detected and fixed code style issues. | |
| **Action performed by:** GitHub Actions (Laravel Pint Workflow) | |
| branch: "pint/code-style-fixes" | |
| base: ${{ github.ref_name }} | |
| labels: "automation, code-style" | |
| delete-branch: true | |
| author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" | |
| add-paths: | | |
| . | |
| - name: Mark workflow as success | |
| if: always() | |
| run: echo "âś… Pint workflow completed successfully." |