Skip to content

Commit 91dda17

Browse files
committed
ci: Git config after checkout
1 parent 58420bf commit 91dda17

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/ci-docker.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
with:
3232
submodules: false
3333
fetch-depth: 1
34+
- name: Git config
35+
run: |
36+
set -x
37+
git config --global --add safe.directory ${PWD}
3438
- name: Install dependencies
3539
run: |
3640
set -x
@@ -71,6 +75,10 @@ jobs:
7175
with:
7276
submodules: false
7377
fetch-depth: 1
78+
- name: Git config
79+
run: |
80+
set -x
81+
git config --global --add safe.directory ${PWD}
7482
- name: Install dependencies
7583
run: |
7684
set -x
@@ -101,6 +109,10 @@ jobs:
101109
with:
102110
submodules: false
103111
fetch-depth: 1
112+
- name: Git config
113+
run: |
114+
set -x
115+
git config --global --add safe.directory ${PWD}
104116
- name: Install dependencies
105117
run: |
106118
set -x
@@ -135,6 +147,10 @@ jobs:
135147
with:
136148
submodules: false
137149
fetch-depth: 1
150+
- name: Git config
151+
run: |
152+
set -x
153+
git config --global --add safe.directory ${PWD}
138154
- name: Cppcheck
139155
continue-on-error: true
140156
run: |
@@ -161,6 +177,10 @@ jobs:
161177
with:
162178
submodules: false
163179
fetch-depth: 1
180+
- name: Git config
181+
run: |
182+
set -x
183+
git config --global --add safe.directory ${PWD}
164184
- name: Install dependencies
165185
run: |
166186
set -x
@@ -204,13 +224,16 @@ jobs:
204224
# "fetch-depth: 0" fetches all of history, this is needed by
205225
# our build system to determine the version from tags
206226
fetch-depth: 0
227+
- name: Git config
228+
run: |
229+
set -x
230+
git config --global --add safe.directory ${PWD}
207231
- name: Build architecture-specific Debian packages
208232
env:
209233
DEBEMAIL: emc-developers@lists.sourceforge.net
210234
DEBFULLNAME: LinuxCNC Github CI Robot
211235
run: |
212236
set -x
213-
git config --global --add safe.directory ${PWD}
214237
.github/scripts/build-package-arch.sh
215238
- name: Verify no untracked or modified files after build
216239
run: |
@@ -279,13 +302,16 @@ jobs:
279302
# "fetch-depth: 0" fetches all of history, this is needed by
280303
# our build system to determine the version from tags
281304
fetch-depth: 0
305+
- name: Git config
306+
run: |
307+
set -x
308+
git config --global --add safe.directory ${PWD}
282309
- name: Build architecture-independent Debian packages
283310
env:
284311
DEBEMAIL: emc-developers@lists.sourceforge.net
285312
DEBFULLNAME: LinuxCNC Github CI Robot
286313
run: |
287314
set -x
288-
git config --global --add safe.directory ${PWD}
289315
.github/scripts/build-package-indep.sh
290316
- name: Verify no untracked or modified files after build
291317
run: |

0 commit comments

Comments
 (0)