From 246ee5363710a6cc505400f02addc5db56ff0977 Mon Sep 17 00:00:00 2001 From: Jakub Beránek Date: Tue, 23 Apr 2024 15:06:44 +0200 Subject: Remove `should-skip-this.sh` --- src/ci/scripts/should-skip-this.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 src/ci/scripts/should-skip-this.sh (limited to 'src/ci/scripts') diff --git a/src/ci/scripts/should-skip-this.sh b/src/ci/scripts/should-skip-this.sh deleted file mode 100755 index 48127166ad0..00000000000 --- a/src/ci/scripts/should-skip-this.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# Set the SKIP_JOB environment variable if this job is not supposed to run on the current builder. - -set -euo pipefail -IFS=$'\n\t' - -source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" - -if [[ -n "${CI_ONLY_WHEN_CHANNEL-}" ]]; then - if [[ "${CI_ONLY_WHEN_CHANNEL}" = "$(cat src/ci/channel)" ]]; then - echo "The channel is the expected one" - else - echo "Not executing this job as the channel is not the expected one" - ciCommandSetEnv SKIP_JOB 1 - exit 0 - fi -fi - - -echo "Executing the job since there is no skip rule preventing the execution" -exit 0 -- cgit 1.4.1-3-g733a5