From cfa6d6cd7bc6725349e1937959f6b52a5494ed20 Mon Sep 17 00:00:00 2001 From: FangcatChina Date: Sat, 25 Jul 2026 23:28:48 +0800 Subject: Sync Webhook --- .github/workflows/sync_to_gitea.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/sync_to_gitea.yml (limited to '.github/workflows') diff --git a/.github/workflows/sync_to_gitea.yml b/.github/workflows/sync_to_gitea.yml new file mode 100644 index 0000000..b42a7d2 --- /dev/null +++ b/.github/workflows/sync_to_gitea.yml @@ -0,0 +1,15 @@ +name: Sync to Gitea +on: + push: + branches: [ main ] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Trigger Gitea mirror sync + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + curl -X POST \ + "https://git.13-trixie.top/api/v1/repos/LinuxCabin/linux-handbook/mirror-sync?token=${{ secrets.GITEA_TOKEN }}" \ No newline at end of file -- cgit v1.3