ci: do not trigger gitlab CI on pushed to upstream branches
Dependabot pushes branches directly to the upstream repository. This causes double-triggers of gitlab CI. Prevent it by running gitlab CI only for the main branch. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
36dff5abe2
commit
97d6142609
1 changed files with 7 additions and 1 deletions
8
.github/workflows/trigger-gitlab.yml
vendored
8
.github/workflows/trigger-gitlab.yml
vendored
|
|
@ -1,7 +1,13 @@
|
|||
# inspired by rhinstaller/anaconda
|
||||
|
||||
name: Trigger GitLab CI
|
||||
on: [push, pull_request_target]
|
||||
|
||||
# do not trigger gitlab CI on pushes to upstream
|
||||
on:
|
||||
pull_request_target:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
pr-info:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue