From b4125e78b402dcc7eaab6b8b610b095080a7449c Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Sun, 19 Jan 2025 23:14:20 +0800 Subject: [PATCH] feat(github): add Gitea sync workflow for repository synchronization --- .github/workflows/gitea-sync.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/gitea-sync.yml diff --git a/.github/workflows/gitea-sync.yml b/.github/workflows/gitea-sync.yml new file mode 100644 index 0000000..9e441a6 --- /dev/null +++ b/.github/workflows/gitea-sync.yml @@ -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 }}' \ No newline at end of file