mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 19:29:15 -04:00
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:
parent
f6be407df2
commit
8d73c29f1a
6 changed files with 36 additions and 6 deletions
7
.github/workflows/frontend-tests.yml
vendored
7
.github/workflows/frontend-tests.yml
vendored
|
@ -1,12 +1,9 @@
|
|||
name: "Frontend tests"
|
||||
|
||||
# any branch is useful for testing before a PR is submitted
|
||||
on: [push, pull_request]
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
withoutplugins:
|
||||
# don't run on PRs from forks
|
||||
if: github.event.pull_request.head.repo.full_name == 'ether/etherpad-lite' || github.event_name == 'push'
|
||||
name: without plugins
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
@ -43,8 +40,6 @@ jobs:
|
|||
tests/frontend/travis/runner.sh
|
||||
|
||||
withplugins:
|
||||
# don't run on PRs from forks
|
||||
if: github.event.pull_request.head.repo.full_name == 'ether/etherpad-lite' || github.event_name == 'push'
|
||||
name: with plugins
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue