mirror of https://github.com/kiwix/libkiwix.git
Simplify branch retrieval
This commit is contained in:
parent
6891ce3b57
commit
b69bf4d062
|
@ -86,10 +86,6 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: "kiwix/kiwix-build_ci:${{matrix.image_variant}}-31"
|
image: "kiwix/kiwix-build_ci:${{matrix.image_variant}}-31"
|
||||||
steps:
|
steps:
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
||||||
id: extract_branch
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
|
@ -99,7 +95,7 @@ jobs:
|
||||||
'git', 'clone',
|
'git', 'clone',
|
||||||
'https://github.com/${{github.repository}}',
|
'https://github.com/${{github.repository}}',
|
||||||
'--depth=1',
|
'--depth=1',
|
||||||
'--branch', ${{steps.extract_branch.outputs.branch}}'
|
'--branch', '${{ github.head_ref || github.ref_name }}'
|
||||||
]
|
]
|
||||||
check_call(command, cwd=environ['HOME'])
|
check_call(command, cwd=environ['HOME'])
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
|
|
Loading…
Reference in New Issue