From c33a51d3d839ba619ea2217ee00a56be23f9fb9f Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Tue, 10 Sep 2024 15:19:05 -0400 Subject: [PATCH] chore: restore ci-check.sh script (#3218) Signed-off-by: Keith Zantow --- .github/scripts/ci-check.sh | 11 +++++++++++ Taskfile.yaml | 11 +---------- 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 .github/scripts/ci-check.sh diff --git a/.github/scripts/ci-check.sh b/.github/scripts/ci-check.sh new file mode 100644 index 00000000000..0ab83a318ae --- /dev/null +++ b/.github/scripts/ci-check.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +red=$(tput setaf 1) +bold=$(tput bold) +normal=$(tput sgr0) + +# assert we are running in CI (or die!) +if [[ -z "$CI" ]]; then + echo "${bold}${red}This step should ONLY be run in CI. Exiting...${normal}" + exit 1 +fi diff --git a/Taskfile.yaml b/Taskfile.yaml index feb12f636ec..5e7f2c000ee 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -593,16 +593,7 @@ tasks: ci-check: # desc: "[CI only] Are you in CI?" cmds: - - cmd: | - red=$(tput setaf 1) - bold=$(tput bold) - normal=$(tput sgr0) - - # assert we are running in CI (or die!) - if [[ -z "$CI" ]]; then - echo "${bold}${red}This step should ONLY be run in CI. Exiting...${normal}" - exit 1 - fi + - cmd: .github/scripts/ci-check.sh silent: true ci-release: