Skip to content

Commit 03adca9

Browse files
committed
add fetching of origin main
1 parent e2ff8dc commit 03adca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-code-format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && sudo apt-get install -y clang-format-18
2222

2323
- name: Add git safe directory
24-
run: git config --global --add safe.directory '*'
24+
run: git config --global --add safe.directory '*' && git fetch origin main
2525
# This command is used to address potential issues with Git's safe directory feature.
2626
# By setting '*' as a safe directory, we allow Git operations to proceed without errors
2727
# related to directory safety, ensuring smooth execution of the submodules updating.

0 commit comments

Comments
 (0)