feat(github): add Gitea sync workflow for repository synchronization
This commit is contained in:
parent
087de0cba3
commit
b4125e78b4
19
.github/workflows/gitea-sync.yml
vendored
Normal file
19
.github/workflows/gitea-sync.yml
vendored
Normal 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 }}'
|
Loading…
x
Reference in New Issue
Block a user