pr update action: fix errors on master branch

The action fails on the master branch as the regex does not match.
The error in this scenario is unfortunate and not of much value as
we do not want to change PR titles on the master branch.

To fix it, entirely disable the action on the master branch which
in restrospective may be a better approach as we do not fire off the
action.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2020-10-26 13:09:20 +01:00
parent 01f642f080
commit 153531d435
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
name: "PR title check"
on: pull_request_target
branches:
- "!master" # don't run it on master to prevent errors
jobs:
update_pr: