Skip to content

Commit

Permalink
clean lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
al-esc committed Jul 31, 2024
1 parent 3610a12 commit 9e9ca0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php-style-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Setup PHP
Expand All @@ -31,5 +31,8 @@ jobs:
# Run `phpcs` on the remaining files and pass output to `cs2pr`.
run: |
echo "Files for this PR:"
gh pr diff ${{ github.event.number }} --name-only | grep .php | xargs find 2> /dev/null | cat
gh pr diff ${{ github.event.number }} --name-only | grep .php | xargs find 2> /dev/null | xargs vendor/bin/phpcs -nq --report=checkstyle | cs2pr
gh pr diff $PR --name-only | grep .php | xargs find 2> /dev/null | cat
gh pr diff $PR --name-only | grep .php | xargs find 2> /dev/null | xargs vendor/bin/phpcs -nq --report=checkstyle | cs2pr
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.number }}

0 comments on commit 9e9ca0b

Please sign in to comment.