Skip to content

Commit

Permalink
rename outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Nov 20, 2024
1 parent cedd652 commit 9bdb9dd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
GALSIM_DATA_URL: https://github.com/GalSim-developers/GalSim/raw/releases/2.4/examples/data/
steps:
- id: cache_path
run: echo path=${{ inputs.cache_path != '' && inputs.cache_path || format('{0}/data', runner.temp) }} >> $GITHUB_OUTPUT
run: echo cache_path=${{ inputs.cache_path != '' && inputs.cache_path || format('{0}/data', runner.temp) }} >> $GITHUB_OUTPUT
- name: download GalSim data
run: |
mkdir galsim_data
Expand All @@ -48,7 +48,7 @@ jobs:
wget ${{ env.GALSIM_DATA_URL }}/real_galaxy_catalog_23.5_example_fits.fits -O galsim_data/real_galaxy_catalog_23.5_example_fits.fits
- id: galsim_data
run: echo "hash=${{ hashFiles( 'galsim_data/' ) }}" >> $GITHUB_OUTPUT
- run: echo GALSIM_PATH=${{ steps.cache_path.outputs.path }}/galsim_data/ >> $GITHUB_ENV
- run: echo GALSIM_PATH=${{ steps.cache_path.outputs.cache_path }}/galsim_data/ >> $GITHUB_ENV
- run: |
mkdir -p ${{ env.GALSIM_PATH }}
mv ./galsim_data/* ${{ env.GALSIM_PATH }}
Expand All @@ -58,17 +58,17 @@ jobs:
with:
path: ${{ needs.download_webbpsf_data.outputs.cache_path }}
key: ${{ needs.download_webbpsf_data.outputs.cache_key }}
- run: mv ${{ needs.download_webbpsf_data.outputs.cache_path }}/webbpsf-data/ ${{ steps.cache_path.outputs.path }}/
- run: mv ${{ needs.download_webbpsf_data.outputs.cache_path }}/webbpsf-data/ ${{ steps.cache_path.outputs.cache_path }}/
continue-on-error: true
- run: echo WEBBPSF_PATH=${{ steps.cache_path.outputs.path }}/webbpsf-data/ >> $GITHUB_ENV
- run: echo WEBBPSF_PATH=${{ steps.cache_path.outputs.cache_path }}/webbpsf-data/ >> $GITHUB_ENV
- id: cache_key
run: echo key=data-${{ needs.download_webbpsf_data.outputs.cache_key }}-galsim-data-${{ steps.galsim_data.outputs.hash }} >> $GITHUB_OUTPUT
run: echo cache_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
uses: actions/cache/save@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ${{ steps.cache_path.outputs.path }}
key: ${{ steps.cache_key.outputs.key }}
path: ${{ steps.cache_path.outputs.cache_path }}
key: ${{ steps.cache_key.outputs.cache_key }}
outputs:
cache_key: ${{ steps.cache_path.outputs.key }}
cache_path: ${{ steps.cache_key.outputs.path }}
cache_key: ${{ steps.cache_path.outputs.cache_key }}
cache_path: ${{ steps.cache_key.outputs.cache_path }}

0 comments on commit 9bdb9dd

Please sign in to comment.