run frontend workflow only on push

run all other workflows on push and on PRs from external repos

This should prevent running workflows twice in case of a PR from a
branch of the main repo
This commit is contained in:
webzwo0i 2020-11-23 01:45:49 +01:00
parent f6be407df2
commit 8d73c29f1a
6 changed files with 36 additions and 6 deletions

View file

@ -5,6 +5,11 @@ on: [push, pull_request]
jobs:
withoutplugins:
# run on pushes to any branch
# run on PRs from external forks
if: |
(github.event_name != 'pull_request')
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
name: without plugins
runs-on: ubuntu-latest
@ -26,6 +31,11 @@ jobs:
run: tests/frontend/travis/runnerBackend.sh
withplugins:
# run on pushes to any branch
# run on PRs from external forks
if: |
(github.event_name != 'pull_request')
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
name: with Plugins
runs-on: ubuntu-latest