Skip to content

Commit 9a4033f

Browse files
committed
validate-deployment-settings: Added spack-config check, added comments
1 parent ca2e917 commit 9a4033f

File tree

1 file changed

+28
-0
lines changed
  • .github/actions/validate-deployment-settings

1 file changed

+28
-0
lines changed

.github/actions/validate-deployment-settings/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ outputs:
2121
runs:
2222
using: composite
2323
steps:
24+
################
25+
# SPACK CHECKS #
26+
################
2427
- name: Check All Spack Major Versions in Prerelease are in Release
2528
id: spack-maj-all-pre-in-rel
2629
shell: bash
@@ -93,6 +96,31 @@ runs:
9396
echo "msg=$msg" >> $GITHUB_OUTPUT
9497
fi
9598
99+
rm -rf ${{ env.CHECKOUT_DIR }}
100+
101+
#######################
102+
# SPACK-CONFIG CHECKS #
103+
#######################
104+
- name: Verify spack-config Tag Exists
105+
id: spack-config-tag-exists
106+
shell: bash
107+
env:
108+
GH_TOKEN: ${{ github.token }}
109+
CHECKOUT_DIR: ./spack-config-metadata
110+
run: |
111+
gh repo clone access-nri/spack-config ${{ env.CHECKOUT_DIR }} -- --no-checkout --bare --filter=blob:none
112+
113+
if ! git -C ${{ env.CHECKOUT_DIR }} tag -l $spack_config_tag; then
114+
msg="Tag $spack_config_tag does not exist in access-nri/spack-config"
115+
echo "::${{ inputs.error-level }}::$msg"
116+
echo "msg=$msg" >> $GITHUB_OUTPUT
117+
fi
118+
119+
rm -rf ${{ env.CHECKOUT_DIR }}
120+
121+
#######################
122+
# END OF ACTION STEPS #
123+
#######################
96124
- name: Warning/Error Collector
97125
id: collector
98126
shell: bash

0 commit comments

Comments
 (0)