From 8c2b1434b8bd63971e3ca06f017bf77132206bb4 Mon Sep 17 00:00:00 2001 From: hermes-explorigin Date: Sat, 5 Sep 2026 03:08:48 +0000 Subject: [PATCH] Fix deploy diff: use fetch-depth 0 so github.event.before is present locally --- .gitea/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ebc230b2..cdf8c724 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,6 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + # Full history: the deploy script diffs github.event.before..sha to + # find which files changed in this push. Shallow (depth-1, the default) + # clones don't contain the before commit, so that diff would 128. + fetch-depth: 0 - name: Deploy changed files to WebDAV env: