Skip to content

Commit

Permalink
Update Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Aug 4, 2023
1 parent 4fcb628 commit d085f72
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/code-style.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/pint-fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Fix PHP code style issues

on:
push:
paths:
- '**.php'

permissions:
contents: write

jobs:
fix-php-code-styling:
runs-on: ubuntu-latest
if: github.repository_owner == 'duncanmcclean'

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PINT }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@1.0.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
20 changes: 20 additions & 0 deletions .github/workflows/pint-link.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint PHP code style issues

on:
pull_request:
paths:
- '**.php'

jobs:
lint-php-code-styling:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Check PHP code style issues
uses: aglipanci/laravel-pint-action@1.0.0
with:
testMode: true
verboseMode: true
13 changes: 13 additions & 0 deletions .github/workflows/pr-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request Title

on:
pull_request:
types: [opened, edited, synchronize, reopened]

jobs:
pr-title:
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-pr-title@master
with:
regex: '^\[\d+\.x\]\s'

0 comments on commit d085f72

Please sign in to comment.