Commit 87980da0 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add workflow rules to pipeline

The rules should prevent duplicate pipelines for branches awaiting
merging.
parent 5271286f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4,6 +4,14 @@
#   Set to your API key for accessing up-to-date package security information


workflow:
  rules:
  - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
    when: never
  - if: $CI_PIPELINE_SOURCE == "merge_request_event"
  - if: $CI_COMMIT_BRANCH


.python:
  image: python:3.9
  variables: