From 41caba06c04515667d3a8f0e1d59aaed6dd4c77f Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Tue, 23 Jun 2026 10:30:28 +0800 Subject: [PATCH] chore: remove webhook config, keep schedule + manual trigger only Co-Authored-By: Claude --- .github/workflows/gitea-tracker.yml | 2 -- COMPATIBILITY.md | 20 +------------------ tools/{ => config}/data/templates_config.json | 0 3 files changed, 1 insertion(+), 21 deletions(-) rename tools/{ => config}/data/templates_config.json (100%) diff --git a/.github/workflows/gitea-tracker.yml b/.github/workflows/gitea-tracker.yml index adfd2fb..1e1e205 100644 --- a/.github/workflows/gitea-tracker.yml +++ b/.github/workflows/gitea-tracker.yml @@ -4,8 +4,6 @@ on: schedule: # Daily at 08:00 UTC — check for new Gitea releases - cron: '0 8 * * *' - repository_dispatch: - types: [gitea-release] workflow_dispatch: inputs: version: diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index b228678..4063df1 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -87,25 +87,7 @@ All templates use Gitea's official `mail.*` translation namespace. Keys are stab ## Automated Tracking -A [workflow](.github/workflows/gitea-tracker.yml) runs daily (and on-demand) to detect new Gitea releases. When a new version is found, it automatically creates a PR updating the matrix and badges with a **⏳ Pending Verification** status. - -### Webhook Setup (optional) - -To trigger the tracker immediately when Gitea publishes a release, configure a webhook on your Gitea instance: - -1. Go to **Site Administration → System Webhooks** -2. Add a webhook with the type **Send Everything** -3. Set URL to: - ``` - https://api.github.com/repos//gitea-mail-templates/dispatches/gitea-release - ``` -4. Set **Authorization** header with a [GitHub PAT](https://github.com/settings/tokens) that has `repo` scope: - ``` - Authorization: Bearer ghp_xxxxxxxxxxxx - ``` -5. Content type: `application/json` - -> The tracker also runs daily via cron (`0 8 * * *` UTC), so manual webhook setup is optional. +A [workflow](.github/workflows/gitea-tracker.yml) runs daily (UTC 08:00) to detect new Gitea releases. When a new version is found, it automatically creates a PR updating the matrix and badges with a **⏳ Pending Verification** status. Manual trigger is also available via `workflow_dispatch`. ## Reporting Issues diff --git a/tools/data/templates_config.json b/tools/config/data/templates_config.json similarity index 100% rename from tools/data/templates_config.json rename to tools/config/data/templates_config.json