From 652f3551c25458fc478c18c2bc04b75fc3002013 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 2 Jan 2025 12:25:22 -0500 Subject: [PATCH] use crds client for getting edit context --- .github/workflows/contexts.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/contexts.yml b/.github/workflows/contexts.yml index b3047bdb63..7eab6c265c 100644 --- a/.github/workflows/contexts.yml +++ b/.github/workflows/contexts.yml @@ -19,8 +19,7 @@ jobs: OBSERVATORY: jwst 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 | - python -c "import sys, json; print(json.load(sys.stdin)['result'])" - )" >> $GITHUB_OUTPUT + pip install crds + PMAP=$(crds list --resolve-contexts --contexts jwst-edit) + echo "pmap=$PMAP" >> $GITHUB_OUTPUT - run: if [[ ! -z "${{ steps.jwst_crds_context.outputs.pmap }}" ]]; then echo ${{ steps.jwst_crds_context.outputs.pmap }}; else exit 1; fi