Commit 60f29ca3 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Adopt `rules` for review-stop as well

parent 53c2d3b3
......@@ -167,10 +167,7 @@ schedule:review-deploy:
- .only-review-schedules
.base-review-stop:
extends:
- .review-workflow-base
- .only-review
- .only:changes-code-qa
extends: .review-workflow-base
environment:
action: stop
variables:
......@@ -187,13 +184,20 @@ schedule:review-deploy:
review-stop-failed-deployment:
extends: .base-review-stop
stage: prepare
rules:
- <<: *if-canonical-gitlab-and-merge-request
changes: *code-qa-patterns
when: on_success
script:
- delete_failed_release
review-stop:
extends: .base-review-stop
stage: review
when: manual
rules:
- <<: *if-canonical-gitlab-and-merge-request
changes: *code-qa-patterns
when: manual
allow_failure: true
script:
- delete_release
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment