Skip to content

Commit e82bac9

Browse files
committed
use crds client for getting edit context
1 parent 031358a commit e82bac9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/contexts.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ jobs:
1818
env:
1919
OBSERVATORY: jwst
2020
CRDS_SERVER_URL: https://jwst-crds.stsci.edu
21-
run: >
22-
echo "pmap=$(
23-
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 |
24-
python -c "import sys, json; print(json.load(sys.stdin)['result'])"
25-
)" >> $GITHUB_OUTPUT
21+
run: |
22+
pip install crds
23+
echo "pmap=$(crds list --resolve-contexts --contexts jwst-edit)" >> $GITHUB_OUTPUT
2624
- run: if [[ ! -z "${{ steps.jwst_crds_context.outputs.pmap }}" ]]; then echo ${{ steps.jwst_crds_context.outputs.pmap }}; else exit 1; fi

0 commit comments

Comments
 (0)