Uses actions/checkout

This commit is contained in:
Emmanuel Engelhart 2023-05-26 14:00:46 +02:00
parent e4595f357d
commit d8f02ac225
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
1 changed files with 1 additions and 11 deletions

View File

@ -83,17 +83,7 @@ jobs:
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:36" image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:36"
steps: steps:
- name: Checkout code - name: Checkout code
shell: python uses: actions/checkout@v3
run: |
from subprocess import check_call
from os import environ
command = [
'git', 'clone',
'https://github.com/${{github.repository}}',
'--depth=1',
'--branch', '${{ github.head_ref || github.ref_name }}'
]
check_call(command, cwd=environ['HOME'])
- name: Install deps - name: Install deps
shell: bash shell: bash
run: | run: |