From 56cb2ac69e31cb517eb281c802d100dbd61ac9a9 Mon Sep 17 00:00:00 2001 From: Anas Rashid Date: Sun, 4 Oct 2026 22:56:57 +0200 Subject: [PATCH] CI: also run sync when sync code changes (Gitea 1.22 has no dispatch button) Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/sync.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/sync.yml b/.gitea/workflows/sync.yml index 8fd4eed63..6eb1101a6 100644 --- a/.gitea/workflows/sync.yml +++ b/.gitea/workflows/sync.yml @@ -2,7 +2,9 @@ name: Wikisource sync on: schedule: - cron: "0 3 * * *" # daily 03:00 UTC - workflow_dispatch: + push: # also run when the sync code changes (bot data commits don't touch these, so no loop) + paths: [wikisource.py, build_index.py, update.sh, .gitea/workflows/sync.yml] + workflow_dispatch: # "Run workflow" button, Gitea 1.23+ jobs: sync: runs-on: ubuntu-latest