From e59bc1bbbe57963cb0088f2b294910b2001c5e72 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Mar 2024 02:06:35 +0100 Subject: [PATCH] Replace the use of actions/checkout with a manual checkout v3 of this action triggers deprecation warnings and will stop working soon, while v4 doesn't work under Ubuntu 18.04 which we use for ODBC testing due to https://github.com/actions/checkout/issues/1442 --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 855450474..f97873f49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,21 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + case "${{matrix.container}}" in + ubuntu:18.04) + export DEBIAN_FRONTEND=noninteractive + + apt-get update -qq + apt-get install -qq git + ;; + esac + + git init soci + cd soci + git remote add origin https://github.com/SOCI/soci.git + git fetch --depth=1 origin $GITHUB_SHA + git checkout FETCH_HEAD - name: Set environment variables run: |