From 062b28eeb0b9ee282cbca0577cbb03a998752a56 Mon Sep 17 00:00:00 2001 From: Peter Adams <63288215+PeterAdams-A@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:38:16 +0100 Subject: [PATCH] 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 --- .github/workflows/swift_6_language_mode.yml | 1 + .github/workflows/swift_matrix.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/swift_6_language_mode.yml b/.github/workflows/swift_6_language_mode.yml index 15ecb2c6f3..29a11a5806 100644 --- a/.github/workflows/swift_6_language_mode.yml +++ b/.github/workflows/swift_6_language_mode.yml @@ -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 diff --git a/.github/workflows/swift_matrix.yml b/.github/workflows/swift_matrix.yml index a5d0b798b6..4c4734cbb6 100644 --- a/.github/workflows/swift_matrix.yml +++ b/.github/workflows/swift_matrix.yml @@ -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