File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,10 @@ jobs:
124
124
contents : write
125
125
126
126
steps :
127
+ # We install git if we are using a container because
128
+ # containers don't always include git.
129
+ # We need git to ensure actions/checkout@v4 will use git and
130
+ # for the next steps that need to clone repositories
127
131
- name : Install Git
128
132
uses :
alandefreitas/cpp-actions/[email protected]
129
133
if : matrix.container != ''
@@ -133,22 +137,14 @@ jobs:
133
137
with :
134
138
apt-get : git
135
139
140
+ # Set up the repository ownership to avoid issues with git commands
136
141
- name : Configure Git Safe Directory
137
142
if : matrix.container != ''
138
143
run : git config --global --add safe.directory "$(pwd)"
139
144
140
145
- name : Clone MrDocs
141
146
uses : actions/checkout@v4
142
147
143
- - name : Install Git
144
- uses :
alandefreitas/cpp-actions/[email protected]
145
- if : matrix.container != ''
146
- env :
147
- DEBIAN_FRONTEND : ' noninteractive'
148
- TZ : ' Etc/UTC'
149
- with :
150
- apt-get : git
151
-
152
148
- name : Setup CMake
153
149
uses :
alandefreitas/cpp-actions/[email protected]
154
150
id : setup-cmake
You can’t perform that action at this time.
0 commit comments