Skip to content
Snippets Groups Projects
Commit 42b2d0f5 authored by Éloïs's avatar Éloïs
Browse files

ci: add job check_labels (!77)

* ci: add job check_labels
parent f86f7594
No related branches found
No related tags found
1 merge request!77ci: add job check_labels
stages: stages:
- labels
- quality - quality
- build - build
- tests - tests
...@@ -16,6 +17,15 @@ workflow: ...@@ -16,6 +17,15 @@ workflow:
- Cargo.toml - Cargo.toml
- Cargo.lock - Cargo.lock
check_labels:
extends: .env
stage: labels
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- when: never
script:
- ./scripts/check_labels.sh $CI_MERGE_REQUEST_LABELS
.env: .env:
image: paritytech/ci-linux:production image: paritytech/ci-linux:production
tags: tags:
......
#!/usr/bin/env bash
RN_LABELS=(
RN-binary
RN-runtime
RN-silent
)
for RN_LABEL in ${RN_LABELS[@]}; do
if [[ "$1" == *"$RN_LABEL"* ]]; then
echo "exit 0"
exit 0
fi
done
echo "exit 1"
exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment