Skip to content

Commit 8d43172

Browse files
Wei WengWei Weng
authored andcommitted
fail early
Signed-off-by: Wei Weng <[email protected]>
1 parent c297b8e commit 8d43172

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ jobs:
5252
run: |
5353
echo "CGO_ENABLED=1" >> $GITHUB_ENV
5454
KUBEBUILDER_ASSETS=$(make --silent kubebuilder-assets-path)
55+
if [ -z "$KUBEBUILDER_ASSETS" ]; then
56+
echo "Error: Failed to get KUBEBUILDER_ASSETS path"
57+
exit 1
58+
fi
5559
echo "KUBEBUILDER_ASSETS="$KUBEBUILDER_ASSETS"" >> $GITHUB_ENV
60+
echo "$KUBEBUILDER_ASSETS" >> $GITHUB_PATH
5661
5762
# Certain tests that require special setup (e.g., those that should be run with Ginkgo CLI only) will
5863
# be skipped in this step.

0 commit comments

Comments
 (0)