From 4f7738dbb45ad7ab03452f97cd1bf55d12c40625 Mon Sep 17 00:00:00 2001 From: Username Date: Sun, 18 Jan 2026 17:16:14 +0100 Subject: [PATCH] ci: fix checkout by installing git first --- .gitea/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f63d863..918e33d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,22 +6,29 @@ on: pull_request: branches: [master] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lint: + name: Lint & Check runs-on: ubuntu-latest container: image: python:3.11-slim + steps: - - name: Checkout + - name: Setup and checkout run: | + apt-get update -qq && apt-get install -yqq --no-install-recommends git >/dev/null git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ "https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" . - name: Install tools - run: pip install --quiet ruff + run: pip install -q ruff - name: Syntax check run: python -m py_compile harbor-ctl.py - name: Lint - run: ruff check --select=E,F,W harbor-ctl.py + run: ruff check harbor-ctl.py