45
45
46
46
# Checkout current git repository
47
47
- name : Checkout
48
- uses : actions/checkout@v3.0.0
48
+ uses : actions/checkout@v3.0.2
49
49
if : github.event_name != 'repository_dispatch'
50
50
with :
51
51
# fecth all history so that setuptools-scm works
62
62
63
63
# Checkout the pull request branch
64
64
- name : Checkout
65
- uses : actions/checkout@v3.0.0
65
+ uses : actions/checkout@v3.0.2
66
66
if : github.event_name == 'repository_dispatch'
67
67
with :
68
68
token : ${{ steps.generate-token.outputs.token }}
78
78
token : ${{ steps.generate-token.outputs.token }}
79
79
repository : ${{ github.event.client_payload.github.payload.repository.full_name }}
80
80
comment-id : ${{ github.event.client_payload.github.payload.comment.id }}
81
+ body : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
81
82
82
83
# Install Mambaforge with conda-forge dependencies
83
84
- name : Setup Mambaforge
@@ -105,6 +106,19 @@ jobs:
105
106
106
107
# Pull baseline image data from dvc remote (DAGsHub)
107
108
- name : Pull baseline image data from dvc remote
109
+ if : github.event_name == 'schedule'
110
+ run : |
111
+ ORIGINAL_BRANCH=$(git branch --show-current)
112
+ # Pull down GMT 6.4 baseline images from the gmt-6.4 branch
113
+ # https://github.com/GenericMappingTools/pygmt/pull/1883
114
+ git checkout gmt-6.4
115
+ dvc pull
116
+ ls -lhR pygmt/tests/baseline/
117
+ git checkout ${ORIGINAL_BRANCH}
118
+
119
+ # Pull baseline image data from dvc remote (DAGsHub)
120
+ - name : Pull baseline image data from dvc remote
121
+ if : github.event_name != 'schedule'
108
122
run : |
109
123
dvc pull
110
124
ls -lhR pygmt/tests/baseline/
@@ -123,7 +137,7 @@ jobs:
123
137
124
138
# Download cached remote files (artifacts) from GitHub
125
139
- name : Download remote data from GitHub
126
- uses : dawidd6/action-download-artifact@v2.17 .0
140
+ uses : dawidd6/action-download-artifact@v2.19 .0
127
141
with :
128
142
workflow : cache_data.yaml
129
143
workflow_conclusion : success
@@ -163,7 +177,7 @@ jobs:
163
177
164
178
# Upload diff images on test failure
165
179
- name : Upload diff images if any test fails
166
- uses : actions/upload-artifact@v2
180
+ uses : actions/upload-artifact@v3
167
181
if : ${{ failure() }}
168
182
with :
169
183
name : artifact-GMT-${{ matrix.gmt_git_ref }}-${{ runner.os }}
0 commit comments