Skip to content

Commit

Permalink
Run rector-php-cs-fixer-pr job only on PR-s (#28)
Browse files Browse the repository at this point in the history
@mkrauser This will not fail on pushes.
  • Loading branch information
szepeviktor authored Oct 25, 2023
1 parent a46549a commit 1a4fa2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
rector-php-cs-fixer-pr:
name: PHP-CS-Fixer / Rector
runs-on: "ubuntu-latest"
if: github.actor != 'dependabot[bot]'
if: github.actor != 'dependabot[bot]' && github.event_name == 'pull_request'
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
Expand Down Expand Up @@ -149,4 +149,4 @@ jobs:
commit-message: Changed by rector in ${{ steps.pr.outputs.branch }}
- name: Fail the workflow when necessary CS fixes were detected
run: echo "Failing workflow run because CS violations were detected." && exit 1
if: steps.create-pull-request.outputs.pr_number
if: steps.create-pull-request.outputs.pr_number

0 comments on commit 1a4fa2d

Please sign in to comment.