80
80
# # Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
81
81
- name : Reset existing repo
82
82
run : |
83
- git config --global --add safe.directory /__w/scala3/scala3
83
+ git config --global --add safe.directory $GITHUB_WORKSPACE
84
84
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
85
85
86
86
- name : Checkout cleanup script
@@ -133,7 +133,7 @@ jobs:
133
133
134
134
- name : Reset existing repo
135
135
run : |
136
- git config --global --add safe.directory /__w/scala3/scala3
136
+ git config --global --add safe.directory $GITHUB_WORKSPACE
137
137
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
138
138
139
139
- name : Checkout cleanup script
@@ -190,7 +190,7 @@ jobs:
190
190
191
191
- name : Reset existing repo
192
192
run : |
193
- git config --global --add safe.directory /__w/scala3/scala3
193
+ git config --global --add safe.directory $GITHUB_WORKSPACE
194
194
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
195
195
196
196
- name : Checkout cleanup script
@@ -229,7 +229,7 @@ jobs:
229
229
- name : Reset existing repo
230
230
shell : cmd
231
231
run : |
232
- git config --global --add safe.directory /__w/scala3/scala3
232
+ git config --global --add safe.directory $GITHUB_WORKSPACE
233
233
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
234
234
235
235
- name : Git Checkout
@@ -273,7 +273,7 @@ jobs:
273
273
- name : Reset existing repo
274
274
shell : cmd
275
275
run : |
276
- git config --global --add safe.directory /__w/scala3/scala3
276
+ git config --global --add safe.directory $GITHUB_WORKSPACE
277
277
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
278
278
279
279
- name : Git Checkout
@@ -319,7 +319,7 @@ jobs:
319
319
320
320
- name : Reset existing repo
321
321
run : |
322
- git config --global --add safe.directory /__w/scala3/scala3
322
+ git config --global --add safe.directory $GITHUB_WORKSPACE
323
323
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
324
324
325
325
- name : Checkout cleanup script
@@ -374,7 +374,7 @@ jobs:
374
374
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
375
375
- name : Reset existing repo
376
376
run : |
377
- git config --global --add safe.directory /__w/scala3/scala3
377
+ git config --global --add safe.directory $GITHUB_WORKSPACE
378
378
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
379
379
380
380
- name : Checkout cleanup script
@@ -391,7 +391,7 @@ jobs:
391
391
392
392
- name : Test
393
393
run : |
394
- git config --global --add safe.directory /__w/scala3/scala3
394
+ git config --global --add safe.directory $GITHUB_WORKSPACE
395
395
git submodule sync
396
396
git submodule update --init --recursive --jobs 7
397
397
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
@@ -431,7 +431,7 @@ jobs:
431
431
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
432
432
- name : Reset existing repo
433
433
run : |
434
- git config --global --add safe.directory /__w/scala3/scala3
434
+ git config --global --add safe.directory $GITHUB_WORKSPACE
435
435
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
436
436
437
437
- name : Checkout cleanup script
@@ -448,7 +448,7 @@ jobs:
448
448
449
449
- name : Test
450
450
run : |
451
- git config --global --add safe.directory /__w/scala3/scala3
451
+ git config --global --add safe.directory $GITHUB_WORKSPACE
452
452
git submodule sync
453
453
git submodule update --init --recursive --jobs 7
454
454
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
@@ -488,7 +488,7 @@ jobs:
488
488
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
489
489
- name : Reset existing repo
490
490
run : |
491
- git config --global --add safe.directory /__w/scala3/scala3
491
+ git config --global --add safe.directory $GITHUB_WORKSPACE
492
492
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
493
493
494
494
- name : Checkout cleanup script
@@ -505,7 +505,7 @@ jobs:
505
505
506
506
- name : Test
507
507
run : |
508
- git config --global --add safe.directory /__w/scala3/scala3
508
+ git config --global --add safe.directory $GITHUB_WORKSPACE
509
509
git submodule sync
510
510
git submodule update --init --recursive --jobs 7
511
511
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
@@ -541,7 +541,7 @@ jobs:
541
541
542
542
- name : Reset existing repo
543
543
run : |
544
- git config --global --add safe.directory /__w/scala3/scala3
544
+ git config --global --add safe.directory $GITHUB_WORKSPACE
545
545
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
546
546
547
547
- name : Checkout cleanup script
@@ -593,7 +593,7 @@ jobs:
593
593
594
594
- name : Reset existing repo
595
595
run : |
596
- git config --global --add safe.directory /__w/scala3/scala3
596
+ git config --global --add safe.directory $GITHUB_WORKSPACE
597
597
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
598
598
599
599
- name : Checkout cleanup script
@@ -648,7 +648,7 @@ jobs:
648
648
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
649
649
- name : Reset existing repo
650
650
run : |
651
- git config --global --add safe.directory /__w/scala3/scala3
651
+ git config --global --add safe.directory $GITHUB_WORKSPACE
652
652
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
653
653
654
654
- name : Checkout cleanup script
@@ -706,7 +706,7 @@ jobs:
706
706
steps :
707
707
- name : Reset existing repo
708
708
run : |
709
- git config --global --add safe.directory /__w/scala3/scala3
709
+ git config --global --add safe.directory $GITHUB_WORKSPACE
710
710
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
711
711
712
712
- name : Checkout cleanup script
@@ -723,7 +723,7 @@ jobs:
723
723
724
724
- name : Generate Website
725
725
run : |
726
- git config --global --add safe.directory /__w/scala3/scala3
726
+ git config --global --add safe.directory $GITHUB_WORKSPACE
727
727
./project/scripts/genDocs -doc-snapshot
728
728
729
729
- name : Deploy Website to https://dotty.epfl.ch
@@ -764,7 +764,7 @@ jobs:
764
764
run : echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
765
765
- name : Reset existing repo
766
766
run : |
767
- git config --global --add safe.directory /__w/scala3/scala3
767
+ git config --global --add safe.directory $GITHUB_WORKSPACE
768
768
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
769
769
770
770
- name : Checkout cleanup script
@@ -826,15 +826,15 @@ jobs:
826
826
path : .
827
827
- name : Prepare MSI package
828
828
shell : bash
829
- run : |
829
+ run : |
830
830
msiInstaller="scala3-${{ env.RELEASE_TAG }}.msi"
831
831
mv scala.msi "${msiInstaller}"
832
832
sha256sum "${msiInstaller}" > "${msiInstaller}.sha256"
833
833
834
834
- name : Install GH CLI
835
835
uses :
dev-hanz-ops/[email protected]
836
836
with :
837
- gh-cli-version : 2.59.0
837
+ gh-cli-version : 2.59.0
838
838
839
839
# Create the GitHub release
840
840
- name : Create GitHub Release
@@ -844,7 +844,7 @@ jobs:
844
844
run : |
845
845
# We need to config safe.directory in every step that might reference git
846
846
# It is not persisted between steps
847
- git config --global --add safe.directory /__w/scala3/scala3
847
+ git config --global --add safe.directory $GITHUB_WORKSPACE
848
848
gh release create \
849
849
--draft \
850
850
--title "${{ env.RELEASE_TAG }}" \
0 commit comments