Skip to content

Commit 836b562

Browse files
committed
Restore custom checkout
1 parent 8d69f3f commit 836b562

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/linux.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,16 @@ jobs:
127127

128128
steps:
129129

130-
- uses: actions/checkout@v2
130+
# We can't use actions/checkout with the docker container, see:
131+
# https://github.com/actions/checkout/issues/170
132+
# https://github.com/actions/checkout/issues/295
133+
# - uses: actions/checkout@v2
134+
- name: Checkout
135+
run: |
136+
echo $GITHUB_REF $GITHUB_SHA
137+
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
138+
git fetch origin $GITHUB_SHA:temporary-ci-branch
139+
git checkout $GITHUB_SHA || (git fetch && git checkout $GITHUB_SHA)
131140
132141
- name: Install extra compiler
133142
run: |

0 commit comments

Comments
 (0)