Skip to content

Commit

Permalink
Download artifacts from successful cache_data workflow runs only
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Nov 16, 2020
1 parent 88c7b68 commit 95ad83c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cache_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Cache data

on:
# Uncomment the 'pull_request' line below to manually re-cache data artifacts
pull_request:
# pull_request:
# Schedule runs on 12 noon every Sunday
schedule:
- cron: '0 12 * * 0'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 95ad83c

Please sign in to comment.