diff options
| -rw-r--r-- | .github/workflows/js.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 1ec0d6909..9f0765905 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -5,6 +5,13 @@ on: branches-ignore: - "dependabot/**" pull_request: + branches: + # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10 + # Branches from forks have the form 'user:branch-name' so we only run + # this job on pull_request events for branches that look like fork + # branches. Without this we would end up running this job twice for non + # forked PRs, once for the push and then once for opening the PR. + - "**:**" env: CI: true |
