ci: fix shallow clone preventing PR checkout

This commit is contained in:
Jarian Cottingham 2026-07-06 06:23:20 +00:00
parent 03670ef27a
commit 93f54aeca5

View File

@ -18,7 +18,7 @@ jobs:
- name: Clone repo - name: Clone repo
run: | run: |
rm -rf $GITHUB_WORKSPACE/* rm -rf $GITHUB_WORKSPACE/*
git clone --depth 1 $GITEA_URL/$GITHUB_REPOSITORY $GITHUB_WORKSPACE git clone --recurse-submodules $GITEA_URL/$GITHUB_REPOSITORY $GITHUB_WORKSPACE
git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true
- name: Run ruff (Python lint) - name: Run ruff (Python lint)