Skip to content

Commit c70028e

Browse files
committed
ci: fix submodule checkout ownership
1 parent 7f0c8b7 commit c70028e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/unit_tests_common.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,21 @@ jobs:
5353
shell: bash
5454
steps:
5555
- name: Checkout code
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@v6
5757
with:
5858
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
5959
ref: ${{ github.event.pull_request.head.ref || github.ref }}
60-
submodules: recursive
60+
submodules: false
6161
persist-credentials: false
6262
set-safe-directory: true
6363

64+
- name: Checkout submodules
65+
run: |
66+
git config --global --add safe.directory "$GITHUB_WORKSPACE/third-party/googletest"
67+
git config --global --add safe.directory "$GITHUB_WORKSPACE/third-party/json"
68+
git submodule sync --recursive
69+
git submodule update --init --force --recursive
70+
6471
- name: Run unit-test suite
6572
env:
6673
FLAGCX_CI_SET_ENV: ${{ inputs.set_env }}

0 commit comments

Comments
 (0)