Skip to content

Commit 062b28e

Browse files
authored
Checkout any submodules when running Actions (#2946)
Motivation: Some repos using this as their source of GitHub Actions logic have submodules. Modifications: Change workflows to checkout submodules. Result: All CI will work cleanly
1 parent c4a6cde commit 062b28e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/swift_6_language_mode.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
with:
2121
persist-credentials: false
22+
submodules: true
2223
- name: Set the language mode
2324
run: swift package tools-version --set 6.0
2425
- name: Build with Swift 6 language mode

.github/workflows/swift_matrix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
uses: actions/checkout@v4
131131
with:
132132
persist-credentials: false
133+
submodules: true
133134
- name: Mark the workspace as safe
134135
if: ${{ matrix.swift.enabled }}
135136
# https://github.com/actions/checkout/issues/766
@@ -199,6 +200,7 @@ jobs:
199200
uses: actions/checkout@v4
200201
with:
201202
persist-credentials: false
203+
submodules: true
202204
- name: Donwload matrix script
203205
if: ${{ matrix.swift.enabled }}
204206
run: curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-matrix-job.ps1 -o __check-matrix-job.ps1

0 commit comments

Comments
 (0)