add Gitea sync workflow

This commit is contained in:
suyiiyii 2025-01-20 10:04:31 +08:00
parent e6d349f344
commit 267e3857d0
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/ssyg/hertz101/mirror-sync' -X POST -H 'Authorization: token ${{ secrets.GITEATOKEN }}'