feat(github): add Gitea sync workflow for repository synchronization

This commit is contained in:
suyiiyii 2025-01-19 23:14:20 +08:00
parent 087de0cba3
commit b4125e78b4
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85

19
.github/workflows/gitea-sync.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Gitea Sync
on:
push:
branches: [ "main", "manifest" ]
workflow_dispatch:
workflow_run:
workflows: ["Docker Build and Publish"]
types:
- completed
jobs:
trigger-gitea-sync:
runs-on: ubuntu-latest
steps:
- name: Trigger Gitea sync
run: |
echo "Triggering Gitea sync"
curl 'https://git.suyiiyii.top/api/v1/repos/suyiiyii/hertz101/mirror-sync' -X POST -H 'Authorization: token ${{ secrets.GITEATOKEN }}'