From c9e2e5ea0c7ae55d7915c953329489b2b951e137 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Fri, 24 Jan 2020 22:41:41 +0800 Subject: [PATCH] ci: only tag breaksapi if there were changes to the runtime sources (#798) --- polkadot/scripts/gitlab/check_runtime.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/polkadot/scripts/gitlab/check_runtime.sh b/polkadot/scripts/gitlab/check_runtime.sh index bd14abde3e..10db3ce392 100755 --- a/polkadot/scripts/gitlab/check_runtime.sh +++ b/polkadot/scripts/gitlab/check_runtime.sh @@ -126,7 +126,12 @@ do if [ "${add_spec_version}" != "${sub_spec_version}" ] then - github_label "B2-breaksapi" + if git diff --name-only origin/master...${CI_COMMIT_SHA} \ + | grep -q -e '^runtime/' + then + # add label breaksapi only if this pr altered the runtime sources + github_label "B2-breaksapi" + fi boldcat <<-EOT