aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/sync_to_gitea.yml15
1 files changed, 15 insertions, 0 deletions
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