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

This commit is contained in:
Gerald Combs 2021-05-07 11:49:51 -07:00
parent ae37347103
commit bedf0eb21c
1 changed files with 3 additions and 1 deletions

View File

@ -42,10 +42,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.