Skip to content

Commit e2c338f

Browse files
authored
Replaced usage of nonexistent access-om3-virtual package with access-om3 (#6)
1 parent bc27c3f commit e2c338f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
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)

.github/workflows/comment.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
env:
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
1111
jobs:
1212
bump-version:
1313
name: Bump spack.yaml
@@ -31,7 +31,7 @@ jobs:
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

0 commit comments

Comments
 (0)