add github action to sync mirror to gitea

This commit is contained in:
Shihaam Abdul Rahman 2025-02-14 00:53:07 +05:00
parent 50710048d2
commit 0b012b20b6
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

19
.github/workflows/mirro-to-sargiea.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Sync Gitea Mirror on Push
on:
push:
branches:
- main
jobs:
sync-mirror:
runs-on: ubuntu-latest
steps:
- name: Trigger Gitea Mirror Sync
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.SAR_GITEA_TOKEN }}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
https://git.shihaam.dev/api/v1/repos/${{ vars.SAR_GITEA_REPO_OWNER }}/${{ vars.GITEA_REPO_NAME }}/mirror-sync