Skip to content

Commit

Permalink
name steps
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Oct 4, 2023
1 parent ca8de2f commit d0386cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
key: ${{ steps.cache_key.outputs.key }}
steps:
- id: retrieve_webbpsf_hash
name: retrieve data hash of latest cache key
name: retrieve data hash of latest cached WebbPSF data
run: |
# use actions/gh-actions-cache to allow filtering by key
gh extension install actions/gh-actions-cache
Expand All @@ -95,13 +95,16 @@ jobs:
HASH=$(echo $LATEST_CACHE | cut -d '-' -f 2)
echo "hash=$HASH" >> $GITHUB_OUTPUT
if [ "$HASH" == '' ]; then exit 1; fi
- uses: actions/cache@v3
- name: retrieve cached WebbPSF data
uses: actions/cache@v3
with:
path: ${{ needs.path.outputs.path }}/webbpsf-data
key: webbpsf-${{ steps.retrieve_webbpsf_hash.outputs.hash }}
- id: cache_key
name: construct combined cache key
run: echo "key=data-${{ steps.retrieve_webbpsf_hash.outputs.hash }}-" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- name: cache combined data directory
uses: actions/cache@v3
with:
path: ${{ needs.path.outputs.path }}
key: ${{ steps.cache_key.outputs.key }}

0 comments on commit d0386cd

Please sign in to comment.