Commit ab80361 1 parent 12d2743 commit ab80361 Copy full SHA for ab80361
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 14
14
root-sbd :
15
15
type : string
16
16
required : false
17
- default : ${{ inputs.model }}
17
+ # default: The ${{ inputs.model }} above
18
18
description : |
19
19
The name of the root Spack Bundle Definition, if it is different from the model name.
20
20
This is often a package named similarly in ACCESS-NRI/spack-packages.
67
67
with :
68
68
fetch-depth : 0
69
69
70
+ - name : Set root-sbd Default
71
+ id : default
72
+ # Unfortunately, you can't set a dynamic default value based on `inputs` yet
73
+ run : |
74
+ if [[ "${{ inputs.root-sbd }}" == "" ]]; then
75
+ echo "root-sbd=${{ inputs.model }}" >> $GITHUB_OUTPUT
76
+ else
77
+ echo "root-sbd=${{ inputs.root-sbd }}" >> $GITHUB_OUTPUT
78
+ fi
79
+
70
80
- name : Check Model Version Modified
71
81
id : version
72
82
run : |
@@ -103,7 +113,7 @@ jobs:
103
113
# for each of the modules
104
114
for DEP in $DEPS; do
105
115
DEP_VER=''
106
- if [[ "$DEP" == "${{ inputs .root-sbd }}" ]]; then
116
+ if [[ "$DEP" == "${{ steps.default.outputs .root-sbd }}" ]]; then
107
117
DEP_VER=$(yq '.spack.specs[0] | split("@git.") | .[1]' spack.yaml)
108
118
else
109
119
DEP_VER=$(yq ".spack.packages.\"$DEP\".require[0] | split(\"@git.\") | .[1]" spack.yaml)
You can’t perform that action at this time.
0 commit comments