From fa4f91fbed64c42d47a084eb2db0d5ed8abc1e0a Mon Sep 17 00:00:00 2001 From: Martin Pugh Date: Mon, 17 May 2021 12:46:56 +0200 Subject: [PATCH] [CI][WIP] Fix check_labels (#3039) * fix check_labels * runtime change test. revert me * Revert "runtime change test. revert me" This reverts commit 6bec7e34f522555f9ac84332721c191d547bdf16. --- polkadot/.github/workflows/check-labels.yml | 1 + polkadot/scripts/github/check_labels.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/polkadot/.github/workflows/check-labels.yml b/polkadot/.github/workflows/check-labels.yml index 66e37b65fe..e70bfddfd3 100644 --- a/polkadot/.github/workflows/check-labels.yml +++ b/polkadot/.github/workflows/check-labels.yml @@ -19,3 +19,4 @@ jobs: GITHUB_PR: ${{ github.event.pull_request.number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} + BASE_SHA: ${{ github.event.pull_request.base.sha }} diff --git a/polkadot/scripts/github/check_labels.sh b/polkadot/scripts/github/check_labels.sh index e18272ec8e..12f07b3495 100755 --- a/polkadot/scripts/github/check_labels.sh +++ b/polkadot/scripts/github/check_labels.sh @@ -54,7 +54,7 @@ else exit 1 fi -if has_runtime_changes origin/master "${HEAD_SHA}"; then +if has_runtime_changes "${BASE_SHA}" "${HEAD_SHA}"; then echo "[+] Runtime changes detected. Checking audit (D) labels" if ensure_labels "${audit_labels[@]}"; then echo "[+] Release audit label detected. All is well."