GitLab CI: Restore the ability to run pipelines from the web UI.

(cherry picked from commit bedf0eb21c)
This commit is contained in:
Gerald Combs 2021-05-07 11:49:51 -07:00
parent 219978c50d
commit c1cf92283c
1 changed files with 3 additions and 1 deletions

View File

@ -24,10 +24,12 @@ variables:
# https://gitlab.com/gitlab-org/gitlab/-/issues/322992
#
# Commits that have been approved and merged. Run automatically in the main
# repo and allow manual runs in forks.
# repo and allow manual runs in the web UI and in forks.
.if-merged:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_URL =~ /.*gitlab.com\/wireshark\/wireshark/'
when: always
- if: '$CI_PIPELINE_SOURCE == "web"'
when: always
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_URL !~ /.*gitlab.com\/wireshark\/wireshark/'
when: manual
# Incoming merge requests.