chore: restore ci-check.sh script (#3218)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow 2024-09-10 15:19:05 -04:00 committed by GitHub
parent dbc4238f63
commit c33a51d3d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 10 deletions

11
.github/scripts/ci-check.sh vendored Normal file
View file

@ -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

View file

@ -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: