mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-02-20 19:32:00 +00:00
add github action to sync mirror to gitea
This commit is contained in:
parent
50710048d2
commit
0b012b20b6
19
.github/workflows/mirro-to-sargiea.yml
vendored
Normal file
19
.github/workflows/mirro-to-sargiea.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user