From b6420cf6ec458c3764b1a830d9d8a95b424a3040 Mon Sep 17 00:00:00 2001
From: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Date: Thu, 22 Dec 2022 14:21:16 +0100
Subject: [PATCH] Fix runtime-migration label detection (#6469)

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---
 polkadot/scripts/ci/gitlab/pipeline/check.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/polkadot/scripts/ci/gitlab/pipeline/check.yml b/polkadot/scripts/ci/gitlab/pipeline/check.yml
index 44185d6f4ca..19d4bfceded 100644
--- a/polkadot/scripts/ci/gitlab/pipeline/check.yml
+++ b/polkadot/scripts/ci/gitlab/pipeline/check.yml
@@ -62,10 +62,10 @@ check-try-runtime:
     - |
       export has_runtimemigration_label=$(curl -sS -H "Accept: application/vnd.github+json" \
         -H "Authorization: token $GITHUB_PR_TOKEN" \
-        https://api.github.com/repos/paritytech/polkadot/issues/$CI_COMMIT_REF_NAME/labels | grep "E1" | wc -l)
+        https://api.github.com/repos/paritytech/polkadot/issues/$CI_COMMIT_REF_NAME/labels | grep "E0-runtime_migration" | wc -l)
     - |
       if [[ $has_runtimemigration_label != 0 ]]; then
-        echo "Found label runtimemigration. Running tests"
+        echo "Found label runtime_migration. Running tests"
         export RUST_LOG=remote-ext=debug,runtime=debug
         echo "---------- Running try-runtime for ${NETWORK} ----------"
         time cargo build --release -p "$NETWORK"-runtime
@@ -75,7 +75,7 @@ check-try-runtime:
             --chain=${NETWORK}-dev \
             on-runtime-upgrade live --uri wss://${NETWORK}-try-runtime-node.parity-chains.parity.io:443
       else
-        echo "runtimemigration label not found. Skipping"
+        echo "runtime_migration label not found. Skipping"
       fi
 
 check-runtime-migration-polkadot:
-- 
GitLab