ci: run syntax-check in container (fix missing git)
This commit is contained in:
@@ -10,9 +10,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
syntax-check:
|
syntax-check:
|
||||||
runs-on: dotfiles
|
runs-on: dotfiles
|
||||||
|
container:
|
||||||
|
image: python:3-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -y -qq 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