From 132ae1e1419e5399cb4264ddf9ed73dc27c1b6b0 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 17 Oct 2025 10:18:55 +0200 Subject: [PATCH] fix key fetch --- .github/workflows/pypi-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index a6ae2fdbf..e434e5c20 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -62,7 +62,7 @@ jobs: # --- API test --- # This also means that the docs/api-spec.yml was shipped and could be read test -f /tmp/url-watches.json - API_KEY=$(jq -r '.api_access_token' /tmp/url-watches.json) + API_KEY=$(jq -r '.. | .api_access_token? // empty' /tmp/url-watches.json) echo Test API KEY is $API_KEY curl -X POST "http://127.0.0.1:10000/api/v1/watch" \ -H "x-api-key: ${API_KEY}" \