Skip to content

Commit c44b46a

Browse files
committed
Fix: Update CI workflow to handle submodule ownership and initialization
1 parent 886b3c2 commit c44b46a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@ jobs:
2121
uses: actions/checkout@v5
2222
with:
2323
fetch-depth: 0
24-
# Do not checkout submodules here, we will do it manually
24+
# We will handle submodules manually after fixing ownership
2525
submodules: 'false'
2626

27-
- name: Set git safe directory
27+
- name: Take ownership of the workspace and update submodules
2828
run: |
29-
git config --global --add safe.directory ${{ github.workspace }}
30-
git config --global --add safe.directory ${{ github.workspace }}/deps/libpaw_interface
31-
32-
- name: Update submodules
33-
run: git submodule update --init --recursive
29+
sudo chown -R $(whoami) .
30+
git submodule update --init --recursive
3431
3532
- name: Install CI tools
3633
run: |

0 commit comments

Comments
 (0)