Skip to content

Commit

Permalink
chore: restore ci-check.sh script (#3218)
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <[email protected]>
  • Loading branch information
kzantow committed Sep 10, 2024
1 parent dbc4238 commit c33a51d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 11 additions & 0 deletions .github/scripts/ci-check.sh
Original file line number Diff line number Diff line change
@@ -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
11 changes: 1 addition & 10 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c33a51d

Please sign in to comment.