Skip to content

Commit

Permalink
Checkout any submodules when running Actions (#2946)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
PeterAdams-A authored Oct 24, 2024
1 parent c4a6cde commit 062b28e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/swift_6_language_mode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/swift_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 062b28e

Please sign in to comment.