From f185e0522a905c31d648d324131ab4c280945210 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 12 Dec 2020 11:06:05 +0200 Subject: [PATCH] Update js.yml --- .github/workflows/js.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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