diff --git a/.github/workflows/contexts.yml b/.github/workflows/contexts.yml deleted file mode 100644 index da86c221b2f..00000000000 --- a/.github/workflows/contexts.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: contexts - -on: - workflow_call: - outputs: - jwst: - value: ${{ jobs.contexts.outputs.jwst }} - workflow_dispatch: - -jobs: - contexts: - name: retrieve latest CRDS contexts - runs-on: ubuntu-latest - outputs: - jwst: ${{ steps.jwst_crds_context.outputs.pmap }} - steps: - - id: jwst_crds_context - env: - OBSERVATORY: jwst - CRDS_SERVER_URL: https://jwst-crds.stsci.edu - run: | - pip install crds - echo "pmap=$(crds list --resolve-contexts --contexts jwst-edit)" >> $GITHUB_OUTPUT - - run: if [[ ! -z "${{ steps.jwst_crds_context.outputs.pmap }}" ]]; then echo ${{ steps.jwst_crds_context.outputs.pmap }}; else exit 1; fi diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c98abcf1260..b8edb702664 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,9 @@ jobs: envs: | - linux: check-dependencies latest_crds_contexts: - uses: ./.github/workflows/contexts.yml + uses: spacetelescope/crds/.github/workflows/contexts.yml@main + with: + observatory: jwst crds_context: needs: [ latest_crds_contexts ] runs-on: ubuntu-latest diff --git a/.github/workflows/tests_extra.yml b/.github/workflows/tests_extra.yml index 5525c500e37..f9437f160c9 100644 --- a/.github/workflows/tests_extra.yml +++ b/.github/workflows/tests_extra.yml @@ -33,7 +33,9 @@ concurrency: jobs: latest_crds_contexts: if: (github.repository == 'spacetelescope/jwst' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'run extra tests'))) - uses: ./.github/workflows/contexts.yml + uses: spacetelescope/crds/.github/workflows/contexts.yml@main + with: + observatory: jwst crds_context: if: (github.repository == 'spacetelescope/jwst' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'run extra tests'))) needs: [ latest_crds_contexts ]