File tree Expand file tree Collapse file tree 6 files changed +36
-60
lines changed Expand file tree Collapse file tree 6 files changed +36
-60
lines changed Original file line number Diff line number Diff line change @@ -64,21 +64,17 @@ jobs:
64
64
65
65
# Download cached remote files (artifacts) from GitHub
66
66
- name : Download remote data from GitHub
67
- uses : dawidd6/action-download-artifact@v3.1.4
68
- with :
69
- workflow : cache_data.yaml
70
- workflow_conclusion : success
71
- name : gmt-cache
72
- path : .gmt
73
-
74
- # Move downloaded files to ~/.gmt directory and list them
75
- - name : Move and list downloaded remote files
76
67
run : |
68
+ gh run download -n gmt-cache -D gmt-cache
69
+ # Move downloaded files to ~/.gmt directory and list them
77
70
mkdir -p ~/.gmt
78
- mv .gmt/* ~/.gmt
71
+ mv gmt-cache/* ~/.gmt
72
+ rmdir gmt-cache
79
73
# Change modification times of the two files, so GMT won't refresh it
80
74
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
81
75
ls -lhR ~/.gmt
76
+ env :
77
+ GH_TOKEN : ${{ github.token }}
82
78
83
79
# Install the package that we want to test
84
80
- name : Install the package
Original file line number Diff line number Diff line change @@ -112,21 +112,17 @@ jobs:
112
112
113
113
# Download cached remote files (artifacts) from GitHub
114
114
- name : Download remote data from GitHub
115
- uses : dawidd6/action-download-artifact@v3.1.4
116
- with :
117
- workflow : cache_data.yaml
118
- workflow_conclusion : success
119
- name : gmt-cache
120
- path : .gmt
121
-
122
- # Move downloaded files to ~/.gmt directory and list them
123
- - name : Move and list downloaded remote files
124
115
run : |
116
+ gh run download -n gmt-cache -D gmt-cache
117
+ # Move downloaded files to ~/.gmt directory and list them
125
118
mkdir -p ~/.gmt
126
- mv .gmt/* ~/.gmt
119
+ mv gmt-cache/* ~/.gmt
120
+ rmdir gmt-cache
127
121
# Change modification times of the two files, so GMT won't refresh it
128
122
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
129
123
ls -lhR ~/.gmt
124
+ env :
125
+ GH_TOKEN : ${{ github.token }}
130
126
131
127
# Install the package that we want to test
132
128
- name : Install the package
Original file line number Diff line number Diff line change @@ -71,21 +71,17 @@ jobs:
71
71
72
72
# Download cached remote files (artifacts) from GitHub
73
73
- name : Download remote data from GitHub
74
- uses : dawidd6/action-download-artifact@v3.1.4
75
- with :
76
- workflow : cache_data.yaml
77
- workflow_conclusion : success
78
- name : gmt-cache
79
- path : .gmt
80
-
81
- # Move downloaded files to ~/.gmt directory and list them
82
- - name : Move and list downloaded remote files
83
74
run : |
75
+ gh run download -n gmt-cache -D gmt-cache
76
+ # Move downloaded files to ~/.gmt directory and list them
84
77
mkdir -p ~/.gmt
85
- mv .gmt/* ~/.gmt
78
+ mv gmt-cache/* ~/.gmt
79
+ rmdir gmt-cache
86
80
# Change modification times of the two files, so GMT won't refresh it
87
81
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
88
82
ls -lhR ~/.gmt
83
+ env :
84
+ GH_TOKEN : ${{ github.token }}
89
85
90
86
# Install the package that we want to test
91
87
- name : Install the package
Original file line number Diff line number Diff line change @@ -128,21 +128,17 @@ jobs:
128
128
129
129
# Download cached remote files (artifacts) from GitHub
130
130
- name : Download remote data from GitHub
131
- uses : dawidd6/action-download-artifact@v3.1.4
132
- with :
133
- workflow : cache_data.yaml
134
- workflow_conclusion : success
135
- name : gmt-cache
136
- path : .gmt
137
-
138
- # Move downloaded files to ~/.gmt directory and list them
139
- - name : Move and list downloaded remote files
140
131
run : |
132
+ gh run download -n gmt-cache -D gmt-cache
133
+ # Move downloaded files to ~/.gmt directory and list them
141
134
mkdir -p ~/.gmt
142
- mv .gmt/* ~/.gmt
135
+ mv gmt-cache/* ~/.gmt
136
+ rmdir gmt-cache
143
137
# Change modification times of the two files, so GMT won't refresh it
144
138
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
145
139
ls -lhR ~/.gmt
140
+ env :
141
+ GH_TOKEN : ${{ github.token }}
146
142
147
143
# Pull baseline image data from dvc remote (DAGsHub)
148
144
- name : Pull baseline image data from dvc remote
Original file line number Diff line number Diff line change @@ -135,21 +135,17 @@ jobs:
135
135
136
136
# Download cached remote files (artifacts) from GitHub
137
137
- name : Download remote data from GitHub
138
- uses : dawidd6/action-download-artifact@v3.1.4
139
- with :
140
- workflow : cache_data.yaml
141
- workflow_conclusion : success
142
- name : gmt-cache
143
- path : .gmt
144
-
145
- # Move downloaded files to ~/.gmt directory and list them
146
- - name : Move and list downloaded remote files
147
138
run : |
139
+ gh run download -n gmt-cache -D gmt-cache
140
+ # Move downloaded files to ~/.gmt directory and list them
148
141
mkdir -p ~/.gmt
149
- mv .gmt/* ~/.gmt
142
+ mv gmt-cache/* ~/.gmt
143
+ rmdir gmt-cache
150
144
# Change modification times of the two files, so GMT won't refresh it
151
145
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
152
146
ls -lhR ~/.gmt
147
+ env :
148
+ GH_TOKEN : ${{ github.token }}
153
149
154
150
# Install the package that we want to test
155
151
- name : Install the package
Original file line number Diff line number Diff line change @@ -83,24 +83,20 @@ jobs:
83
83
84
84
# Download cached remote files (artifacts) from GitHub
85
85
- name : Download remote data from GitHub
86
- uses : dawidd6/action-download-artifact@v3.1.4
87
- with :
88
- workflow : cache_data.yaml
89
- workflow_conclusion : success
90
- name : gmt-cache
91
- path : .gmt
92
-
93
- # Move downloaded files to ~/.gmt directory and list them
94
- - name : Move and list downloaded remote files
95
86
run : |
87
+ gh run download -n gmt-cache -D gmt-cache
88
+ # Move downloaded files to ~/.gmt directory and list them
96
89
mkdir -p ~/.gmt
97
- mv .gmt/* ~/.gmt
90
+ mv gmt-cache/* ~/.gmt
91
+ rmdir gmt-cache
98
92
# Change modification times of the two files, so GMT won't refresh it
99
93
# The two files are in the `~/.gmt/server` directory for GMT<=6.4, and
100
94
# in the `~/.gmt` directory for GMT>=6.5.
101
95
mv ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt ~/.gmt/server/
102
96
touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt
103
97
ls -lhR ~/.gmt
98
+ env :
99
+ GH_TOKEN : ${{ github.token }}
104
100
105
101
# Install the package that we want to test
106
102
- name : Install the package
You can’t perform that action at this time.
0 commit comments