1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-03 06:22:16 -05:00

Do not run the main CI for MRs

We do not want to run the main CI if the fork happens to use the
main branch, too.
This commit is contained in:
Jonas Schäfer 2020-10-20 16:45:20 +02:00
parent 74d35ebbcf
commit c5074f8157

View File

@ -10,6 +10,8 @@ stages:
- make html inbox-html inbox-xml pdf xeplist refs xml
- bash tools/ci-prune-build.sh
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
when: always
- when: never
@ -37,6 +39,8 @@ stages:
- 'docker push "$IMAGE_REF"'
- 'docker push "$LATEST_REF"'
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
when: on_success
- when: never
@ -52,6 +56,8 @@ stages:
- state/
key: attic-state
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
when: on_success
- when: never
@ -67,6 +73,8 @@ stages:
- state/
key: announce-state
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
when: on_success
- when: never