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: