Skip to content

Commit 30d5b66

Browse files
authoredJan 11, 2021
Fix workflow filter on pull-request event (#4550)
1 parent 6bcb89e commit 30d5b66

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎.github/workflows/mocha.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ name: Tests
66
- opened
77
- synchronize
88
- reopened
9-
branches:
10-
# Branches from forks have the form 'user:branch-name'
11-
- '**:**'
129

1310
jobs:
1411
prepare-commit-msg:
1512
name: Retrieve head commit message
1613
runs-on: ubuntu-latest
14+
# Run 'pull-request' event only on external PRs from forked repos.
15+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1716
outputs:
1817
HEAD_COMMIT_MSG: '${{ steps.commitMsg.outputs.HEAD_COMMIT_MSG }}'
1918
steps:

0 commit comments

Comments
 (0)
Please sign in to comment.