36
36
SCCACHE_CACHE_SIZE : " 2G"
37
37
38
38
steps :
39
- - uses : actions/checkout@v1
39
+ - uses : actions/checkout@v2
40
40
with :
41
41
submodules : true
42
42
- name : Set Git User
45
45
run : |
46
46
git config --global user.email "[email protected] "
47
47
git config --global user.name "Dummy User"
48
+ - name : Unset header
49
+ # checkout@v2 adds a header that makes branch protection report errors
50
+ # because the Github action bot is not a collaborator on the repo
51
+ run : git config --local --unset http.https://github.com/.extraheader
52
+ - name : Fetch tags
53
+ run : git fetch --prune --unshallow
48
54
- name : install dependencies
49
55
run : |
50
56
sudo apt-get update
@@ -146,14 +152,14 @@ jobs:
146
152
steps :
147
153
- uses : actions/checkout@v2
148
154
- name : Download version file
149
- uses : actions/download-artifact@v2
155
+ uses : actions/download-artifact@v4
150
156
with :
151
157
name : VersionFile
152
158
path : mrtrix3_version.txt
153
159
- name : Extract Mrtrix version
154
160
run : echo "MRTRIX_VERSION=$(cat mrtrix3_version.txt)" >> $GITHUB_ENV
155
161
- name : Download auto-gen pydra
156
- uses : actions/download-artifact@v2
162
+ uses : actions/download-artifact@v4
157
163
with :
158
164
name : AutoGen
159
165
path : pydra/tasks/mrtrix3/${{ env.SUBPKG_NAME }}
@@ -202,22 +208,22 @@ jobs:
202
208
- name : Fetch tags
203
209
run : git fetch --prune --unshallow
204
210
- name : Download version file
205
- uses : actions/download-artifact@v2
211
+ uses : actions/download-artifact@v4
206
212
with :
207
213
name : VersionFile
208
214
path : mrtrix3_version.txt
209
215
- name : Extract Mrtrix version
210
216
run : echo "MRTRIX_VERSION=$(cat mrtrix3_version.txt)" >> $GITHUB_ENV
211
217
- name : Download auto-gen pydra
212
- uses : actions/download-artifact@v2
218
+ uses : actions/download-artifact@v4
213
219
with :
214
220
name : AutoGen
215
221
path : pydra/tasks/mrtrix3/${{ env.SUBPKG_NAME }}
216
222
- name : Strip auto package from gitignore so it is included in package
217
223
run : |
218
224
sed -i '/\/pydra\/tasks\/mrtrix3\/${{ env.SUBPKG_NAME }}/d' .gitignore
219
225
- name : Download MRtrix3 install
220
- uses : actions/download-artifact@v2
226
+ uses : actions/download-artifact@v4
221
227
with :
222
228
name : MRtrix3
223
229
path : ${{ env.MRTRIX_INSTALL}}
@@ -242,7 +248,7 @@ jobs:
242
248
-e '.[test]'
243
249
- name : Test with pytest
244
250
run : pytest -sv pydra/tasks/mrtrix3 --cov pydra.tasks.mrtrix3 --cov-report xml
245
- - uses : codecov/codecov-action@v1
251
+ - uses : codecov/codecov-action@v2
246
252
if : ${{ always() }}
247
253
248
254
deploy-fileformats :
@@ -253,6 +259,10 @@ jobs:
253
259
with :
254
260
submodules : recursive
255
261
fetch-depth : 0
262
+ - name : Unset header
263
+ # checkout@v2 adds a header that makes branch protection report errors
264
+ # because the Github action bot is not a collaborator on the repo
265
+ run : git config --local --unset http.https://github.com/.extraheader
256
266
- name : Set up Python
257
267
uses : actions/setup-python@v4
258
268
with :
@@ -285,6 +295,10 @@ jobs:
285
295
with :
286
296
submodules : recursive
287
297
fetch-depth : 0
298
+ - name : Unset header
299
+ # checkout@v2 adds a header that makes branch protection report errors
300
+ # because the Github action bot is not a collaborator on the repo
301
+ run : git config --local --unset http.https://github.com/.extraheader
288
302
- name : Set up Python
289
303
uses : actions/setup-python@v4
290
304
with :
@@ -320,15 +334,19 @@ jobs:
320
334
run : |
321
335
git config --local user.email "[email protected] "
322
336
git config --local user.name "GitHub Action"
337
+ - name : Unset header
338
+ # checkout@v2 adds a header that makes branch protection report errors
339
+ # because the Github action bot is not a collaborator on the repo
340
+ run : git config --local --unset http.https://github.com/.extraheader
323
341
- name : Download version file
324
- uses : actions/download-artifact@v2
342
+ uses : actions/download-artifact@v4
325
343
with :
326
344
name : VersionFile
327
345
path : mrtrix3_version.txt
328
346
- name : Extract Mrtrix version
329
347
run : echo "MRTRIX_VERSION=$(cat mrtrix3_version.txt)" >> $GITHUB_ENV
330
348
- name : Download auto-gen pydra
331
- uses : actions/download-artifact@v2
349
+ uses : actions/download-artifact@v4
332
350
with :
333
351
name : AutoGen
334
352
path : pydra/tasks/mrtrix3/${{ env.SUBPKG_NAME }}
0 commit comments