Skip to content

Commit

Permalink
correcting buildcache step
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Sep 17, 2024
1 parent 68b458c commit b7108a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
push-to-build-cache:
description: 'Whether to push specs to build cache after a successful build'
required: false
default: false
default: 'false'
build-cache-token:
description: 'Token to use to push into the build cache'
required: false
Expand Down Expand Up @@ -50,11 +50,11 @@ runs:
spack -e "$GITHUB_ACTION_PATH" install
- name: Push packages to buildcache and update index
if: ${{ inputs.push-to-build-cache }}
if: ${{ inputs.push-to-build-cache == 'true' }}
shell: bash
run: |
spack -e "$GITHUB_ACTION_PATH" mirror set --push \
--oci-username ${{ github.actor }} \
--oci-password "${{ inputs.build-cache-token }}" mochi-buildcache
spack -e tests buildcache push --base-image ubuntu:22.04 \
spack -e "$GITHUB_ACTION_PATH" buildcache push --base-image ubuntu:22.04 \
--unsigned --update-index mochi-buildcache

0 comments on commit b7108a9

Please sign in to comment.