Skip to content

Commit

Permalink
allow user to specify cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Nov 20, 2024
1 parent c8db2fd commit 199ce09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
type: boolean
required: false
default: true
cache_path:
type: string
required: false
default: ""
outputs:
cache_key:
value: ${{ jobs.combine_data_cache.outputs.cache_key }}
Expand Down Expand Up @@ -55,7 +59,7 @@ jobs:
- run: echo WEBBPSF_PATH=${{ runner.temp }}/data/webbpsf-data/ >> $GITHUB_ENV
- id: cache
run: |
echo path=${{ runner.temp }}/data/ >> $GITHUB_OUTPUT
echo path=${{ inputs.cache_path != '' && inputs.cache_path || format('{0}/data', runner.temp) }} >> $GITHUB_OUTPUT
echo key=data-${{ needs.download_webbpsf_data.outputs.cache_key }}-galsim-data-${{ steps.galsim_data.outputs.hash }} >> $GITHUB_OUTPUT
# save a new cache to the same generalized data directory, combined with extra data
- name: save a single combined data cache
Expand Down

0 comments on commit 199ce09

Please sign in to comment.