diff --git a/.github/workflows/build-and-pr.yml b/.github/workflows/build-and-pr.yml index 0708d1d8..39ad60a2 100644 --- a/.github/workflows/build-and-pr.yml +++ b/.github/workflows/build-and-pr.yml @@ -14,7 +14,7 @@ on: jobs: build-and-commit: runs-on: ubuntu-latest - if: github.event.workflow_dispatch || (github.event.pull_request.merged == true) + if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true) permissions: contents: write pull-requests: write