ci: add branch pattern 'pr/**' to PR test workflow

In order to run CI jobs also on PRs that are based on other PRs, this
change adds the pattern 'pr/**' to the tested base branches.  That
means, if PRs are pushed that are based on branches that start with
pr/... these PRs are also get tested. So, if we - by convention - push
PRs to branches like for example pr/ansiwen/myfix42, then all PRs
that are not based on master but another PR get tested as well.

Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
Sven Anderson 2021-01-19 22:49:19 +01:00 committed by John Mulligan
parent 527553718c
commit d75b75fb75
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- master
# run the CI also on PRs that are based on branches starting with pr/...
- 'pr/**'
schedule:
- cron: 1 1 * * *