forked from claw/flaskpaste
ci: ensure git is available in deploy job
This commit is contained in:
@@ -287,6 +287,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
|
command -v git >/dev/null 2>&1 || {
|
||||||
|
apt-get update -qq && apt-get install -yqq --no-install-recommends git >/dev/null
|
||||||
|
}
|
||||||
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
|
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
|
||||||
"https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
|
"https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user