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
This commit is contained in:
Peter Adams authored and GitHub committed 2024-10-24 10:38:16 +01:00
1 parent c4a6cdea3a
commit 062b28eeb0
2 files changed
+3

No files matched your search

@@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: true
- name: Set the language mode
run: swift package tools-version --set 6.0
- name: Build with Swift 6 language mode
+2
View File
@@ -130,6 +130,7 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: true
- name: Mark the workspace as safe
if: ${{ matrix.swift.enabled }}
# https://github.com/actions/checkout/issues/766
@@ -199,6 +200,7 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: true
- name: Donwload matrix script
if: ${{ matrix.swift.enabled }}
run: curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-matrix-job.ps1 -o __check-matrix-job.ps1