File tree 6 files changed +13
-30
lines changed
6 files changed +13
-30
lines changed Original file line number Diff line number Diff line change 62
62
# Download cached remote files (artifacts) from GitHub
63
63
- name : Download remote data from GitHub
64
64
run : |
65
- gh run download -n gmt-cache -D gmt-cache
66
- # Move downloaded files to ~/.gmt directory and list them
67
- mkdir -p ~/.gmt
68
- mv gmt-cache/* ~/.gmt
69
- rmdir gmt-cache
65
+ # Download cached files to ~/.gmt directory and list them
66
+ gh run download --name gmt-cache --dir ~/.gmt/
70
67
# Change modification times of the two files, so GMT won't refresh it
71
68
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
72
69
ls -lhR ~/.gmt
Original file line number Diff line number Diff line change @@ -113,11 +113,8 @@ jobs:
113
113
# Download cached remote files (artifacts) from GitHub
114
114
- name : Download remote data from GitHub
115
115
run : |
116
- gh run download -n gmt-cache -D gmt-cache
117
- # Move downloaded files to ~/.gmt directory and list them
118
- mkdir -p ~/.gmt
119
- mv gmt-cache/* ~/.gmt
120
- rmdir gmt-cache
116
+ # Download cached files to ~/.gmt directory and list them
117
+ gh run download --name gmt-cache --dir ~/.gmt/
121
118
# Change modification times of the two files, so GMT won't refresh it
122
119
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
123
120
ls -lhR ~/.gmt
Original file line number Diff line number Diff line change 72
72
# Download cached remote files (artifacts) from GitHub
73
73
- name : Download remote data from GitHub
74
74
run : |
75
- gh run download -n gmt-cache -D gmt-cache
76
- # Move downloaded files to ~/.gmt directory and list them
77
- mkdir -p ~/.gmt
78
- mv gmt-cache/* ~/.gmt
79
- rmdir gmt-cache
75
+ # Download cached files to ~/.gmt directory and list them
76
+ gh run download --name gmt-cache --dir ~/.gmt/
80
77
# Change modification times of the two files, so GMT won't refresh it
81
78
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
82
79
ls -lhR ~/.gmt
Original file line number Diff line number Diff line change @@ -129,11 +129,8 @@ jobs:
129
129
# Download cached remote files (artifacts) from GitHub
130
130
- name : Download remote data from GitHub
131
131
run : |
132
- gh run download -n gmt-cache -D gmt-cache
133
- # Move downloaded files to ~/.gmt directory and list them
134
- mkdir -p ~/.gmt
135
- mv gmt-cache/* ~/.gmt
136
- rmdir gmt-cache
132
+ # Download files to ~/.gmt directory and list them
133
+ gh run download --name gmt-cache --dir ~/.gmt/
137
134
# Change modification times of the two files, so GMT won't refresh it
138
135
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
139
136
ls -lhR ~/.gmt
Original file line number Diff line number Diff line change @@ -136,11 +136,8 @@ jobs:
136
136
# Download cached remote files (artifacts) from GitHub
137
137
- name : Download remote data from GitHub
138
138
run : |
139
- gh run download -n gmt-cache -D gmt-cache
140
- # Move downloaded files to ~/.gmt directory and list them
141
- mkdir -p ~/.gmt
142
- mv gmt-cache/* ~/.gmt
143
- rmdir gmt-cache
139
+ # Download cached files to ~/.gmt directory and list them
140
+ gh run download --name gmt-cache --dir ~/.gmt/
144
141
# Change modification times of the two files, so GMT won't refresh it
145
142
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt
146
143
ls -lhR ~/.gmt
Original file line number Diff line number Diff line change @@ -84,14 +84,12 @@ jobs:
84
84
# Download cached remote files (artifacts) from GitHub
85
85
- name : Download remote data from GitHub
86
86
run : |
87
- gh run download -n gmt-cache -D gmt-cache
88
- # Move downloaded files to ~/.gmt directory and list them
89
- mkdir -p ~/.gmt
90
- mv gmt-cache/* ~/.gmt
91
- rmdir gmt-cache
87
+ # Download cached files to ~/.gmt directory and list them
88
+ gh run download --name gmt-cache --dir ~/.gmt/
92
89
# Change modification times of the two files, so GMT won't refresh it
93
90
# The two files are in the `~/.gmt/server` directory for GMT<=6.4, and
94
91
# in the `~/.gmt` directory for GMT>=6.5.
92
+ mkdir -p ~/.gmt/server/
95
93
mv ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt ~/.gmt/server/
96
94
touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt
97
95
ls -lhR ~/.gmt
You can’t perform that action at this time.
0 commit comments