Skip to content

Commit bc01ac0

Browse files
committed
ci: remove extra git install step
1 parent bf3f56b commit bc01ac0

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ jobs:
124124
contents: write
125125

126126
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
127131
- name: Install Git
128132
uses: alandefreitas/cpp-actions/[email protected]
129133
if: matrix.container != ''
@@ -133,22 +137,14 @@ jobs:
133137
with:
134138
apt-get: git
135139

140+
# Set up the repository ownership to avoid issues with git commands
136141
- name: Configure Git Safe Directory
137142
if: matrix.container != ''
138143
run: git config --global --add safe.directory "$(pwd)"
139144

140145
- name: Clone MrDocs
141146
uses: actions/checkout@v4
142147

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-
152148
- name: Setup CMake
153149
uses: alandefreitas/cpp-actions/[email protected]
154150
id: setup-cmake

0 commit comments

Comments
 (0)