Skip to content

Update pint.yml

Update pint.yml #17

Workflow file for this run

name: Laravel Pint

Check failure on line 1 in .github/workflows/pint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pint.yml

Invalid workflow file

(Line: 63, Col: 9): Unexpected value 'run'
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: Install dependencies
run: |
composer install --no-interaction --prefer-dist --no-progress
# Eğer Pint yüklü değilse, dev bağımlılık olarak yükle
if [ ! -f ./vendor/bin/pint ]; then
composer require laravel/pint --dev
fi
- name: Run Laravel Pint (format check)
id: pint
continue-on-error: true
run: ./vendor/bin/pint --test
- name: Create Pint Fix Pull Request
if: steps.pint.outcome == 'failure'
uses: peter-evans/create-pull-request@v6
with:
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 code style issues and fixed them.
**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>"
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: |
.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "❌ Kod biçimi hataları bulundu. Otomatik PR hazırlanıyor..."
./vendor/bin/pint