Commit e2c338f 1 parent bc27c3f commit e2c338f Copy full SHA for e2c338f
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 83
83
# for each of the modules
84
84
for DEP in $DEPS; do
85
85
DEP_VER=''
86
- if [[ "$DEP" == "access-om3-virtual " ]]; then
86
+ if [[ "$DEP" == "access-om3" ]]; then
87
87
DEP_VER=$(yq '.spack.specs[0] | split("@git.") | .[1]' spack.yaml)
88
88
else
89
89
DEP_VER=$(yq ".spack.packages.\"$DEP\".require[0] | split(\"@git.\") | .[1]" spack.yaml)
Original file line number Diff line number Diff line change 7
7
env :
8
8
RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
9
9
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
11
11
jobs :
12
12
bump-version :
13
13
name : Bump spack.yaml
31
31
# version: The version that will be bumped (could be latest tag instead of original-version)
32
32
# bump: The bump type (major, minor or current as specified in the bump-version action)
33
33
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
35
35
gh pr checkout ${{ github.event.issue.number }}
36
36
original_version=$(yq e '${{ env.SPACK_YAML_MODEL_YQ }} | split("@git.") | .[1]' spack.yaml)
37
37
echo "original-version=${original_version}" >> $GITHUB_OUTPUT
@@ -79,10 +79,10 @@ jobs:
79
79
git config user.name ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
80
80
git config user.email ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
81
81
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
83
83
yq -i '${{ env.SPACK_YAML_MODEL_PROJECTION_YQ }} = "{name}/${{ steps.bump.outputs.after }}"' spack.yaml
84
84
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 }}"
86
86
git push
87
87
88
88
- name : Success Notifier
You can’t perform that action at this time.
0 commit comments