mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-14 13:40:51 +02:00
ci: run git unshallow conditionally
This commit is contained in:
parent
bc7b5ebf47
commit
9b6d55eda0
|
@ -16,7 +16,8 @@ steps:
|
|||
fetch:
|
||||
image: docker.io/library/python:3.11
|
||||
commands:
|
||||
- git fetch --unshallow --quiet
|
||||
- >
|
||||
[ -f "$(git rev-parse --is-shallow-repository)" ] && git fetch --unshallow --quiet || true
|
||||
|
||||
pytest:
|
||||
image: ${PYTHON_VERSION}
|
||||
|
|
Loading…
Reference in New Issue
Block a user