☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fix workflow filter on pull-request event (#4550)
Juerg B30d5b667a0b8
diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.ymlindex 3cdb3b5f..4e65c6b8 100644--- a/.github/workflows/mocha.yml+++ b/.github/workflows/mocha.yml@@ -6,14 +6,13 @@ name: Tests- opened- synchronize- reopened- branches:- # Branches from forks have the form 'user:branch-name'- - '**:**'jobs:prepare-commit-msg:name: Retrieve head commit messageruns-on: ubuntu-latest+ # Run 'pull-request' event only on external PRs from forked repos.+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repositoryoutputs:HEAD_COMMIT_MSG: '${{ steps.commitMsg.outputs.HEAD_COMMIT_MSG }}'steps: