From bbc11966ca7102495defb2f6072e8a16d0333f0f Mon Sep 17 00:00:00 2001 From: alphasentaurii Date: Tue, 15 Oct 2024 11:07:32 -0400 Subject: [PATCH] use state=latest for jwst cache context --- .github/workflows/contexts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/contexts.yml b/.github/workflows/contexts.yml index 51fd15c6b..e97084bb5 100644 --- a/.github/workflows/contexts.yml +++ b/.github/workflows/contexts.yml @@ -36,7 +36,7 @@ jobs: CRDS_SERVER_URL: https://jwst-crds.stsci.edu run: > echo "pmap=$( - curl -s -X POST -d '{"jsonrpc": "1.0", "method": "get_default_context", "params": ["${{ env.OBSERVATORY }}", null], "id": 1}' ${{ env.CRDS_SERVER_URL }}/json/ --retry 8 --connect-timeout 10 | + curl -s -X POST -d '{"jsonrpc": "1.0", "method": "get_default_context", "params": ["${{ env.OBSERVATORY }}", "latest"], "id": 1}' ${{ env.CRDS_SERVER_URL }}/json/ --retry 8 --connect-timeout 10 | python -c "import sys, json; print(json.load(sys.stdin)['result'])" )" >> $GITHUB_OUTPUT - run: if [[ ! -z "${{ steps.jwst_crds_context.outputs.pmap }}" ]]; then echo ${{ steps.jwst_crds_context.outputs.pmap }}; else exit 1; fi