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