68
68
- name : Set JDK 17 as default
69
69
run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
70
70
71
+ # # Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/lampepfl/dotty/pull/19720)
71
72
- name : Reset existing repo
72
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
73
+ run : |
74
+ git config --global --add safe.directory /__w/dotty/dotty
75
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
73
76
74
77
- name : Checkout cleanup script
75
78
uses : actions/checkout@v4
@@ -120,7 +123,9 @@ jobs:
120
123
run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
121
124
122
125
- name : Reset existing repo
123
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
126
+ run : |
127
+ git config --global --add safe.directory /__w/dotty/dotty
128
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
124
129
125
130
- name : Checkout cleanup script
126
131
uses : actions/checkout@v4
@@ -174,7 +179,9 @@ jobs:
174
179
run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
175
180
176
181
- name : Reset existing repo
177
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
182
+ run : |
183
+ git config --global --add safe.directory /__w/dotty/dotty
184
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
178
185
179
186
- name : Checkout cleanup script
180
187
uses : actions/checkout@v4
@@ -211,8 +218,10 @@ jobs:
211
218
212
219
steps :
213
220
- name : Reset existing repo
214
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
215
221
shell : cmd
222
+ run : |
223
+ git config --global --add safe.directory /__w/dotty/dotty
224
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
216
225
217
226
- name : Git Checkout
218
227
uses : actions/checkout@v4
@@ -253,8 +262,10 @@ jobs:
253
262
254
263
steps :
255
264
- name : Reset existing repo
256
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
257
265
shell : cmd
266
+ run : |
267
+ git config --global --add safe.directory /__w/dotty/dotty
268
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
258
269
259
270
- name : Git Checkout
260
271
uses : actions/checkout@v4
@@ -294,7 +305,9 @@ jobs:
294
305
run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
295
306
296
307
- name : Reset existing repo
297
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
308
+ run : |
309
+ git config --global --add safe.directory /__w/dotty/dotty
310
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
298
311
299
312
- name : Checkout cleanup script
300
313
uses : actions/checkout@v4
@@ -344,7 +357,9 @@ jobs:
344
357
- name : Set JDK 8 as default
345
358
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
346
359
- name : Reset existing repo
347
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
360
+ run : |
361
+ git config --global --add safe.directory /__w/dotty/dotty
362
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
348
363
349
364
- name : Checkout cleanup script
350
365
uses : actions/checkout@v4
@@ -396,7 +411,9 @@ jobs:
396
411
- name : Set JDK 8 as default
397
412
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
398
413
- name : Reset existing repo
399
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
414
+ run : |
415
+ git config --global --add safe.directory /__w/dotty/dotty
416
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
400
417
401
418
- name : Checkout cleanup script
402
419
uses : actions/checkout@v4
@@ -448,7 +465,9 @@ jobs:
448
465
- name : Set JDK 8 as default
449
466
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
450
467
- name : Reset existing repo
451
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
468
+ run : |
469
+ git config --global --add safe.directory /__w/dotty/dotty
470
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
452
471
453
472
- name : Checkout cleanup script
454
473
uses : actions/checkout@v4
@@ -499,7 +518,9 @@ jobs:
499
518
run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
500
519
501
520
- name : Reset existing repo
502
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
521
+ run : |
522
+ git config --global --add safe.directory /__w/dotty/dotty
523
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
503
524
504
525
- name : Checkout cleanup script
505
526
uses : actions/checkout@v4
@@ -546,7 +567,9 @@ jobs:
546
567
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
547
568
548
569
- name : Reset existing repo
549
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
570
+ run : |
571
+ git config --global --add safe.directory /__w/dotty/dotty
572
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
550
573
551
574
- name : Checkout cleanup script
552
575
uses : actions/checkout@v4
@@ -592,7 +615,9 @@ jobs:
592
615
- name : Set JDK 17 as default
593
616
run : echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
594
617
- name : Reset existing repo
595
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
618
+ run : |
619
+ git config --global --add safe.directory /__w/dotty/dotty
620
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
596
621
597
622
- name : Checkout cleanup script
598
623
uses : actions/checkout@v4
@@ -646,7 +671,9 @@ jobs:
646
671
647
672
steps :
648
673
- name : Reset existing repo
649
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
674
+ run : |
675
+ git config --global --add safe.directory /__w/dotty/dotty
676
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
650
677
651
678
- name : Checkout cleanup script
652
679
uses : actions/checkout@v4
@@ -662,6 +689,7 @@ jobs:
662
689
663
690
- name : Generate Website
664
691
run : |
692
+ git config --global --add safe.directory /__w/dotty/dotty
665
693
./project/scripts/genDocs -doc-snapshot
666
694
667
695
- name : Deploy Website to dotty-website
@@ -696,7 +724,9 @@ jobs:
696
724
697
725
steps :
698
726
- name : Reset existing repo
699
- run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
727
+ run : |
728
+ git config --global --add safe.directory /__w/dotty/dotty
729
+ git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
700
730
701
731
- name : Checkout cleanup script
702
732
uses : actions/checkout@v4
0 commit comments