From 274ed45a356c7c63d061214428eb0e7138b141f8 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 26 Apr 2024 14:01:45 -0300 Subject: [PATCH] update git as a fix to self-hosted runners --- .github/workflows/ci-build.yml | 6 ++++++ .github/workflows/ci-check.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index fac95f80..083445bf 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -192,6 +192,12 @@ jobs: ref: ${{ inputs.REF || github.ref }} fetch-depth: 0 + - name: Update git + if: ${{ inputs.SUBMODULES_RECURSIVE == true && inputs.SUBMODULES_PRIVATE == true }} + run: | + sudo apt update + sudo apt install -y git + - uses: actions/checkout@v4 name: Checkout private submoules recursively id: private diff --git a/.github/workflows/ci-check.yml b/.github/workflows/ci-check.yml index 54445d86..ad7c6039 100644 --- a/.github/workflows/ci-check.yml +++ b/.github/workflows/ci-check.yml @@ -134,6 +134,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: Update git + if: ${{ inputs.SUBMODULES_RECURSIVE == true }} + run: | + sudo apt update + sudo apt install -y git - uses: actions/checkout@v4 if: ${{ inputs.SUBMODULES_RECURSIVE == true }}