Skip to content

Commit 7bf9bc2

Browse files
committed
Fix refereing to env variable
1 parent 6f103b9 commit 7bf9bc2

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
## Workaround for https://github.com/actions/runner/issues/2033 (See https://github.com/scala/scala3/pull/19720)
8181
- name: Reset existing repo
8282
run: |
83-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
83+
git config --global --add safe.directory $GITHUB_WORKSPACE
8484
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
8585
8686
- name: Checkout cleanup script
@@ -133,7 +133,7 @@ jobs:
133133

134134
- name: Reset existing repo
135135
run: |
136-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
136+
git config --global --add safe.directory $GITHUB_WORKSPACE
137137
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
138138
139139
- name: Checkout cleanup script
@@ -190,7 +190,7 @@ jobs:
190190

191191
- name: Reset existing repo
192192
run: |
193-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
193+
git config --global --add safe.directory $GITHUB_WORKSPACE
194194
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
195195
196196
- name: Checkout cleanup script
@@ -229,7 +229,7 @@ jobs:
229229
- name: Reset existing repo
230230
shell: cmd
231231
run: |
232-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
232+
git config --global --add safe.directory $GITHUB_WORKSPACE
233233
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
234234
235235
- name: Git Checkout
@@ -273,7 +273,7 @@ jobs:
273273
- name: Reset existing repo
274274
shell: cmd
275275
run: |
276-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
276+
git config --global --add safe.directory $GITHUB_WORKSPACE
277277
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
278278
279279
- name: Git Checkout
@@ -319,7 +319,7 @@ jobs:
319319

320320
- name: Reset existing repo
321321
run: |
322-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
322+
git config --global --add safe.directory $GITHUB_WORKSPACE
323323
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
324324
325325
- name: Checkout cleanup script
@@ -374,7 +374,7 @@ jobs:
374374
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
375375
- name: Reset existing repo
376376
run: |
377-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
377+
git config --global --add safe.directory $GITHUB_WORKSPACE
378378
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
379379
380380
- name: Checkout cleanup script
@@ -391,7 +391,7 @@ jobs:
391391

392392
- name: Test
393393
run: |
394-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
394+
git config --global --add safe.directory $GITHUB_WORKSPACE
395395
git submodule sync
396396
git submodule update --init --recursive --jobs 7
397397
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestA"
@@ -431,7 +431,7 @@ jobs:
431431
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
432432
- name: Reset existing repo
433433
run: |
434-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
434+
git config --global --add safe.directory $GITHUB_WORKSPACE
435435
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
436436
437437
- name: Checkout cleanup script
@@ -448,7 +448,7 @@ jobs:
448448

449449
- name: Test
450450
run: |
451-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
451+
git config --global --add safe.directory $GITHUB_WORKSPACE
452452
git submodule sync
453453
git submodule update --init --recursive --jobs 7
454454
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestB"
@@ -488,7 +488,7 @@ jobs:
488488
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
489489
- name: Reset existing repo
490490
run: |
491-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
491+
git config --global --add safe.directory $GITHUB_WORKSPACE
492492
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
493493
494494
- name: Checkout cleanup script
@@ -505,7 +505,7 @@ jobs:
505505

506506
- name: Test
507507
run: |
508-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
508+
git config --global --add safe.directory $GITHUB_WORKSPACE
509509
git submodule sync
510510
git submodule update --init --recursive --jobs 7
511511
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
@@ -541,7 +541,7 @@ jobs:
541541

542542
- name: Reset existing repo
543543
run: |
544-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
544+
git config --global --add safe.directory $GITHUB_WORKSPACE
545545
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
546546
547547
- name: Checkout cleanup script
@@ -593,7 +593,7 @@ jobs:
593593

594594
- name: Reset existing repo
595595
run: |
596-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
596+
git config --global --add safe.directory $GITHUB_WORKSPACE
597597
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
598598
599599
- name: Checkout cleanup script
@@ -648,7 +648,7 @@ jobs:
648648
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
649649
- name: Reset existing repo
650650
run: |
651-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
651+
git config --global --add safe.directory $GITHUB_WORKSPACE
652652
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
653653
654654
- name: Checkout cleanup script
@@ -706,7 +706,7 @@ jobs:
706706
steps:
707707
- name: Reset existing repo
708708
run: |
709-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
709+
git config --global --add safe.directory $GITHUB_WORKSPACE
710710
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
711711
712712
- name: Checkout cleanup script
@@ -723,7 +723,7 @@ jobs:
723723

724724
- name: Generate Website
725725
run: |
726-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
726+
git config --global --add safe.directory $GITHUB_WORKSPACE
727727
./project/scripts/genDocs -doc-snapshot
728728
729729
- name: Deploy Website to https://dotty.epfl.ch
@@ -764,7 +764,7 @@ jobs:
764764
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH
765765
- name: Reset existing repo
766766
run: |
767-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
767+
git config --global --add safe.directory $GITHUB_WORKSPACE
768768
git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/scala/scala3" && git reset --hard FETCH_HEAD || true
769769
770770
- name: Checkout cleanup script
@@ -844,7 +844,7 @@ jobs:
844844
run: |
845845
# We need to config safe.directory in every step that might reference git
846846
# It is not persisted between steps
847-
git config --global --add safe.directory ${{ env.GITHUB_WORKSPACE }}
847+
git config --global --add safe.directory $GITHUB_WORKSPACE
848848
gh release create \
849849
--draft \
850850
--title "${{ env.RELEASE_TAG }}" \

0 commit comments

Comments
 (0)