Skip to content

Commit 981d04b

Browse files
committed
Check out github-workflows into subdirectory
checkout@v1 and checkout@v4 differ in their behavior, try to make v1 clone the workflows repo in the same place as v4.
1 parent bbfd1ad commit 981d04b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/swift_package_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ jobs:
325325
uses: actions/checkout@v1
326326
with:
327327
repository: swiftlang/github-workflows
328-
path: github-workflows
328+
path: ${{ github.event.repository.name }}/github-workflows
329329
ref: main
330330
- name: Determine script-root path
331331
id: script_path
@@ -392,7 +392,7 @@ jobs:
392392
uses: actions/checkout@v1
393393
with:
394394
repository: swiftlang/github-workflows
395-
path: github-workflows
395+
path: ${{ github.event.repository.name }}/github-workflows
396396
ref: main
397397
- name: Determine script-root path
398398
id: script_path
@@ -469,7 +469,7 @@ jobs:
469469
uses: actions/checkout@v1
470470
with:
471471
repository: swiftlang/github-workflows
472-
path: github-workflows
472+
path: ${{ github.event.repository.name }}/github-workflows
473473
ref: main
474474
- name: Determine script-root path
475475
id: script_path
@@ -546,7 +546,7 @@ jobs:
546546
uses: actions/checkout@v1
547547
with:
548548
repository: swiftlang/github-workflows
549-
path: github-workflows
549+
path: ${{ github.event.repository.name }}/github-workflows
550550
ref: main
551551
- name: Determine script-root path
552552
id: script_path
@@ -624,7 +624,7 @@ jobs:
624624
uses: actions/checkout@v1
625625
with:
626626
repository: swiftlang/github-workflows
627-
path: github-workflows
627+
path: ${{ github.event.repository.name }}/github-workflows
628628
ref: main
629629
- name: Determine script-root path
630630
id: script_path

0 commit comments

Comments
 (0)