mirror of https://github.com/kiwix/libkiwix.git
Uses actions/checkout
This commit is contained in:
parent
e4595f357d
commit
d8f02ac225
|
@ -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: |
|
||||||
|
|
Loading…
Reference in New Issue