From ec4ce2f0f48735c1e98473df514d6ef2d1b8d51e Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Mon, 16 Nov 2020 14:19:58 +1300 Subject: [PATCH] Update cache_data workflow to download from successfully cached artifacts (#692) Adds a missing @ back to cache workflow, accidental typo from #687. Also bumps dawidd6/action-download-artifact from 2.6.3 to 2.10.0 and make sure that we only grab from successfully cached artifacts next time. --- .github/workflows/cache_data.yaml | 2 +- .github/workflows/ci_tests.yaml | 3 ++- .github/workflows/ci_tests_dev.yaml | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cache_data.yaml b/.github/workflows/cache_data.yaml index c1441210078..0566d8e1ee5 100644 --- a/.github/workflows/cache_data.yaml +++ b/.github/workflows/cache_data.yaml @@ -16,7 +16,7 @@ jobs: steps: # Setup Miniconda - name: Setup Miniconda - uses: conda-incubator/setup-minicondav2.0.0 + uses: conda-incubator/setup-miniconda@v2.0.0 with: channels: conda-forge miniconda-version: "latest" diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 1494ba25953..c47764d3758 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -97,9 +97,10 @@ jobs: # Download cached remote files (artifacts) from GitHub - name: Download remote data from GitHub - uses: dawidd6/action-download-artifact@v2.6.3 + uses: dawidd6/action-download-artifact@v2.10.0 with: workflow: cache_data.yaml + workflow_conclusion: success name: gmt-cache path: .gmt diff --git a/.github/workflows/ci_tests_dev.yaml b/.github/workflows/ci_tests_dev.yaml index 48dba9f0c04..44ce156f5de 100644 --- a/.github/workflows/ci_tests_dev.yaml +++ b/.github/workflows/ci_tests_dev.yaml @@ -64,9 +64,10 @@ jobs: # Download cached remote files (artifacts) from GitHub - name: Download remote data from GitHub - uses: dawidd6/action-download-artifact@v2.6.3 + uses: dawidd6/action-download-artifact@v2.10.0 with: workflow: cache_data.yaml + workflow_conclusion: success name: gmt-cache path: .gmt