Skip to content

Commit ee72d1b

Browse files
committed
Explicitly disallow multi-spec Releases
1 parent 6b97808 commit ee72d1b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/deploy-1-setup.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)