From 837d896141ea05e98c2abcd93e56210554cbd429 Mon Sep 17 00:00:00 2001
From: jneira <atreyu.bbb@gmail.com>
Date: Tue, 22 Feb 2022 09:53:06 +0100
Subject: [PATCH] Restore custom checkout

---
 .github/workflows/linux.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index a673164227..3a7e760b6e 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -127,7 +127,16 @@ jobs:
 
     steps:
 
-      - uses: actions/checkout@v2
+      # We can't use actions/checkout with the docker container, see:
+      # https://github.com/actions/checkout/issues/170
+      # https://github.com/actions/checkout/issues/295
+      # - uses: actions/checkout@v2
+      - name: Checkout
+        run: |
+          echo $GITHUB_REF $GITHUB_SHA
+          git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
+          git fetch origin $GITHUB_SHA:temporary-ci-branch
+          git checkout $GITHUB_SHA || (git fetch && git checkout $GITHUB_SHA)
 
       - name: Install extra compiler
         run: |
-- 
GitLab