File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8383 # for each of the modules
8484 for DEP in $DEPS; do
8585 DEP_VER=''
86- if [[ "$DEP" == "access-om3-virtual " ]]; then
86+ if [[ "$DEP" == "access-om3" ]]; then
8787 DEP_VER=$(yq '.spack.specs[0] | split("@git.") | .[1]' spack.yaml)
8888 else
8989 DEP_VER=$(yq ".spack.packages.\"$DEP\".require[0] | split(\"@git.\") | .[1]" spack.yaml)
Original file line number Diff line number Diff line change 77env :
88 RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
99 SPACK_YAML_MODEL_YQ : .spack.specs[0]
10- SPACK_YAML_MODEL_PROJECTION_YQ : .spack.modules.default.tcl.projections.access-om3-virtual
10+ SPACK_YAML_MODEL_PROJECTION_YQ : .spack.modules.default.tcl.projections.access-om3
1111jobs :
1212 bump-version :
1313 name : Bump spack.yaml
3131 # version: The version that will be bumped (could be latest tag instead of original-version)
3232 # bump: The bump type (major, minor or current as specified in the bump-version action)
3333 run : |
34- # Get the version of access-om3-virtual from the spack.yaml in the PR the comment was written in
34+ # Get the version of access-om3 from the spack.yaml in the PR the comment was written in
3535 gh pr checkout ${{ github.event.issue.number }}
3636 original_version=$(yq e '${{ env.SPACK_YAML_MODEL_YQ }} | split("@git.") | .[1]' spack.yaml)
3737 echo "original-version=${original_version}" >> $GITHUB_OUTPUT
@@ -79,10 +79,10 @@ jobs:
7979 git config user.name ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
8080 git config user.email ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
8181
82- yq -i '${{ env.SPACK_YAML_MODEL_YQ }} = "access-om3-virtual @git.${{ steps.bump.outputs.after }}"' spack.yaml
82+ yq -i '${{ env.SPACK_YAML_MODEL_YQ }} = "access-om3@git.${{ steps.bump.outputs.after }}"' spack.yaml
8383 yq -i '${{ env.SPACK_YAML_MODEL_PROJECTION_YQ }} = "{name}/${{ steps.bump.outputs.after }}"' spack.yaml
8484 git add spack.yaml
85- git commit -m "spack.yaml: Updated access-om3-virtual package version from ${{ steps.setup.outputs.original-version }} to ${{ steps.bump.outputs.after }}"
85+ git commit -m "spack.yaml: Updated access-om3 package version from ${{ steps.setup.outputs.original-version }} to ${{ steps.bump.outputs.after }}"
8686 git push
8787
8888 - name : Success Notifier
You can’t perform that action at this time.
0 commit comments