From 1817943b0a09d881d9ff70c299e07cc4553b2db3 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Wed, 17 Jul 2024 10:56:17 -0400 Subject: [PATCH] reorder hash function --- .github/workflows/data.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/data.yml b/.github/workflows/data.yml index 7b513e93..f6916252 100644 --- a/.github/workflows/data.yml +++ b/.github/workflows/data.yml @@ -23,15 +23,18 @@ jobs: env: GALSIM_DATA_URL: https://github.com/GalSim-developers/GalSim/raw/releases/2.4/examples/data/ steps: - - run: echo GALSIM_PATH=${{ needs.download_webbpsf_data.outputs.cache_path }}galsim_data/ >> $GITHUB_ENV - name: download GalSim data run: | - mkdir -p ${{ env.GALSIM_PATH }} - wget ${{ env.GALSIM_DATA_URL }}/real_galaxy_catalog_23.5_example.fits -O ${{ env.GALSIM_PATH }}/real_galaxy_catalog_23.5_example.fits - wget ${{ env.GALSIM_DATA_URL }}/real_galaxy_catalog_23.5_example_selection.fits -O ${{ env.GALSIM_PATH }}/real_galaxy_catalog_23.5_example_selection.fits - wget ${{ env.GALSIM_DATA_URL }}/real_galaxy_catalog_23.5_example_fits.fits -O ${{ env.GALSIM_PATH }}/real_galaxy_catalog_23.5_example_fits.fits + mkdir ./galsim_data/ + wget ./galsim_data/real_galaxy_catalog_23.5_example.fits -O ${{ env.GALSIM_PATH }}/real_galaxy_catalog_23.5_example.fits + wget ./galsim_data/real_galaxy_catalog_23.5_example_selection.fits -O ${{ env.GALSIM_PATH }}/real_galaxy_catalog_23.5_example_selection.fits + wget ./galsim_data/real_galaxy_catalog_23.5_example_fits.fits -O ${{ env.GALSIM_PATH }}/real_galaxy_catalog_23.5_example_fits.fits - id: galsim_data - run: echo "hash=${{ hashFiles( env.GALSIM_PATH ) }}" >> $GITHUB_OUTPUT + run: echo "hash=${{ hashFiles( 'galsim_data/' ) }}" >> $GITHUB_OUTPUT + - run: echo GALSIM_PATH=${{ needs.download_webbpsf_data.outputs.cache_path }}galsim_data/ >> $GITHUB_ENV + - run: | + mkdir -p ${{ env.GALSIM_PATH }} + mv ./galsim_data/* ${{ env.GALSIM_PATH }} - run: echo GALSIM_CAT_PATH=${{ env.GALSIM_PATH }}real_galaxy_catalog_23.5_example.fits >> $GITHUB_ENV - name: retrieve cached WebbPSF data uses: actions/cache/restore@v4