Fix checkout of code.

Correctly handle tag ref.
This commit is contained in:
Matthieu Gautier 2020-05-25 12:01:16 +02:00
parent 040171129a
commit 925943a5ee
2 changed files with 10 additions and 6 deletions

View File

@ -103,8 +103,10 @@ jobs:
shell: bash
run: |
cd $HOME
git clone https://github.com/${REP} --depth=1 --branch ${GITHUB_REF##*heads/}
pip3 install --user --no-deps ./${REP##*/}
git clone https://github.com/${REP}
cd ./${REP##*/}
git checkout --force ${GITHUB_SHA}
pip3 install --user --no-deps .
env:
REP: ${{github.repository}}
- name: secret
@ -158,7 +160,7 @@ jobs:
brew: pkg-config ninja
- name: Install python modules
run: |
pip3 install meson==0.52.1 pytest distro
pip3 install meson==0.52.1 pytest requests distro
pip3 install --no-deps $GITHUB_WORKSPACE
- name: secret
shell: bash

View File

@ -86,8 +86,10 @@ jobs:
shell: bash
run: |
cd $HOME
git clone https://github.com/${REP} --depth=1 --branch ${GITHUB_REF##*heads/}
pip3 install --user --no-deps ./${REP##*/}
git clone https://github.com/${REP}
cd ./${REP##*/}
git checkout --force ${GITHUB_SHA}
pip3 install --user --no-deps .
env:
REP: ${{github.repository}}
- name: secret
@ -139,7 +141,7 @@ jobs:
brew: pkg-config ninja
- name: Install python modules
run: |
pip3 install meson==0.52.1 pytest requests
pip3 install meson==0.52.1 pytest requests distro
pip3 install --no-deps $GITHUB_WORKSPACE
- name: secret
shell: bash