Skip to content

Commit

Permalink
CI: Move git install to earlier in the build for Debian Docker container
Browse files Browse the repository at this point in the history
We gotta have git on the CLI, or else the code isn't checked out via git,
it's downloaded as a tarball and extracted that way...

We need to be in the actual git repo for later steps of the build workflow!
  • Loading branch information
DeeDeeG committed Oct 3, 2023
1 parent 117862b commit e36ae85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
container: ${{ matrix.image }}

steps:
- name: Install git
if: ${{ runner.os == 'Linux' }}
run: apt-get update && apt-get install -y git

- name: Checkout the latest code
uses: actions/checkout@v3

Expand All @@ -44,10 +48,6 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install git
if: ${{ runner.os == 'Linux' }}
run: apt-get update && apt-get install -y git

- name: Setup Git Submodule
run: |
git submodule init
Expand Down

0 comments on commit e36ae85

Please sign in to comment.