From e18aee23ecb33bb5b4163d17022a1fbad46d0073 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Wed, 17 Jul 2024 08:58:13 -0400 Subject: [PATCH 1/2] create data directory when caching data --- .github/workflows/download_data.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index 82dde630..e0a40b83 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -60,6 +60,7 @@ jobs: runs-on: ubuntu-latest steps: - run: wget ${{ (github.event_name == 'schedule' || github.event_name == 'release') && env.MINIMAL_DATA_URL || inputs.minimal && env.MINIMAL_DATA_URL || env.DATA_URL }} -O ${{ runner.temp }}/webbpsf-data.tar.gz + - run: mkdir ${{ runner.temp }}/data/ - run: tar -xzvf ${{ runner.temp }}/webbpsf-data.tar.gz -C ${{ runner.temp }}/data/ - id: cache_path run: echo cache_path=${{ runner.temp }}/data/ >> $GITHUB_OUTPUT From 63a2e08a0a14e66f4ddcb56dead23b84d2b24b62 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Wed, 17 Jul 2024 09:05:46 -0400 Subject: [PATCH 2/2] correct path to version.txt --- .github/workflows/download_data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/download_data.yml b/.github/workflows/download_data.yml index e0a40b83..401b12f1 100644 --- a/.github/workflows/download_data.yml +++ b/.github/workflows/download_data.yml @@ -65,7 +65,7 @@ jobs: - id: cache_path run: echo cache_path=${{ runner.temp }}/data/ >> $GITHUB_OUTPUT - id: version - run: echo "version=$(cat ${{ steps.cache_path.outputs.cache_path }}/version.txt)" >> $GITHUB_OUTPUT + run: echo "version=$(cat ${{ steps.cache_path.outputs.cache_path }}/webbpsf-data/version.txt)" >> $GITHUB_OUTPUT - id: cache_key run: echo "cache_key=webbpsf-data-${{ (github.event_name == 'schedule' || github.event_name == 'release') && 'mini' || inputs.minimal && 'mini' || 'full' }}-${{ steps.version.outputs.version }}" >> $GITHUB_OUTPUT - uses: actions/cache/save@v4