Skip to content

Commit

Permalink
fix(workflows): test mise in a subshell
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <devin@buhl.casa>
  • Loading branch information
onedr0p committed Dec 29, 2024
1 parent 63842dc commit 272bb6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/mise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
shell: bash
run: |
IFS=$'\n' read -r -d '' -a CRD_LIST < <(kubectl get crds 2>&1 | sed -n '/NAME/,$p' | tail -n +2 && printf '\0')
# If no CRDs exist in the cluster, exit
if [ ${#CRD_LIST[@]} == 0 ]; then
printf "No CRDs found in the cluster, exiting...\n"
exit 0
fi
FETCHED_CRDS=0
for crd in "${CRD_LIST[@]}"; do
printf "Fetching CRD %s/%s...\n" $((FETCHED_CRDS + 1)) ${#CRD_LIST[@]}
Expand Down

0 comments on commit 272bb6d

Please sign in to comment.