You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`spack-installs-root-path`|`string`| Path to a directory within which all versions of spack are installed |`true`| N/A |`"/some/dir/apps/spack"`|
10
10
|`spack-version`|`string`| Version of spack deployed. Used to construct a specific spack installation path, in conjunction with `spack-installs-root-path`. |`true`| N/A |`"0.21"`|
11
-
|`deployment-environment`|`string`| Name of the GitHub deployment target environment |`true`| N/A |`"Gadi Prerelease"`|
11
+
|`deployment-target`|`string`| Name of the GitHub deployment target |`true`| N/A |`"Gadi"`|
12
+
|`deployment-type`|`string`| Type of the GitHub deployment target |`true`| N/A |`"Release"`, `"Prerelease"`|
12
13
|`spack-environment`|`string`| Spack environment name that is used for this deployment. Used to construct Prerelease spack-packages path, which is demarcated by the environment name |`true`| N/A |`"access-om2-pr12-12"`|
13
14
14
15
## Outputs
@@ -29,15 +30,16 @@ This action constructs paths relevant to a deployment of `spack`.
description: Path to the ACCESS-NRI/spack-packages repository associated with the environment created in the install of spack.
42
-
value: ${{ steps.path.outputs.spack-packages }}
43
40
spack-environment:
44
-
description: Path to the spack environment folder for the given inputs.spack-environment.
41
+
description: Path to the spack environment folder for the given inputs.spack-environment. Also contains the `spack-packages` repository for Prerelease deployments.
# Regarding our other important repository path, spack-packages:
44
+
# Release instances of spack-packages are now managed by spack itself via `spack repo` commands, so deployment doesn't actually need to know where it is.
45
+
# Prerelease instances of spack-packages are located within the outputs.spack-environment folder, and are removed when that environment is removed, so there is no need to track them either.
46
46
runs:
47
47
using: composite
48
48
steps:
@@ -54,32 +54,22 @@ runs:
54
54
run: |
55
55
# Check that the inputs.spack-installs-root-path exists - it's usually a var
56
56
if [ -z '${{ inputs.spack-installs-root-path }}' ]; then
57
-
echo '::error::inputs.spack-installs-root-path does not exist in ${{ github.repository }}s ${{ inputs.deployment-environment }} environment. Check Environment vars.'
57
+
echo '::error::inputs.spack-installs-root-path does not exist in ${{ github.repository }}s ${{ inputs.deployment-target }} ${{ inputs.deployment-type }} environment. Check Environment vars.'
58
58
exit 1
59
59
fi
60
60
61
-
# We want the type of deployment environment, which is the last word in the string.
0 commit comments