File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,6 +302,17 @@ jobs:
302302 with :
303303 spack-manifest-path : ${{ inputs.spack-manifest-path }}
304304
305+ - name : Disallow multi-spec Releases
306+ if : inputs.deployment-type == 'Release'
307+ # FIXME: Once the necessary infrastructure/guidance is in place, remove this step. See ACCESS-NRI/build-cd#344
308+ run : |
309+ root_specs=$(yq '.spack.specs | select(.[] == "${{ steps.current.outputs.deployment-name }}*") | length' ${{ inputs.spack-manifest-path }})
310+
311+ if [ "$root_specs" -gt 1 ]; then
312+ echo "::error::We don't yet support multiple root specs with the same package name. Contact the Model Release Team for information."
313+ exit 1
314+ fi
315+
305316 - name : Checkout base (${{ inputs.prerelease-compare-ref }}) spack manifest
306317 if : inputs.deployment-type != 'Release'
307318 continue-on-error : true
You can’t perform that action at this time.
0 commit comments