summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/context7-refresh.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/context7-refresh.yml b/.github/workflows/context7-refresh.yml
index 5c7e2f41..9489b55e 100644
--- a/.github/workflows/context7-refresh.yml
+++ b/.github/workflows/context7-refresh.yml
@@ -51,6 +51,10 @@ jobs:
DISPATCH_VERSION: ${{ inputs.version }}
run: |
set -euo pipefail
+ if [[ -z "${CONTEXT7_API_KEY:-}" ]]; then
+ echo "ERROR: CONTEXT7_API_KEY is unset or empty" >&2
+ exit 1
+ fi
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
VARIANT="$DISPATCH_VERSION"
else