From e36ae85fa66047fe46802fd9e213462afaf7f8cd Mon Sep 17 00:00:00 2001 From: DeeDeeG Date: Mon, 2 Oct 2023 23:26:15 -0400 Subject: [PATCH] CI: Move git install to earlier in the build for Debian Docker container 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! --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c72bd1f4a9..ad1570f11f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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