Merge pull request 'ci/add-automatic-sync' (#2) from ci/add-automatic-sync into main
Some checks failed
Sync to GitHub / sync (push) Failing after 7s

Reviewed-on: rafiarrafif/AnimeTV-Backend#2
This commit is contained in:
Rafi Arrafif
2026-02-01 21:31:17 +07:00
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,18 @@
name: Sync to GitHub
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout from Gitea
uses: actions/checkout@v4
- name: Push to GitHub mirror-main
run: |
git remote add github https://vivy-agent:${{ secrets.GH_TOKEN }}@github.com/rafiarrafif/SyzneTV-backend.git
git push github HEAD:mirror-main --force

View File

@ -0,0 +1,19 @@
name: Auto PR from Local Git Mirror
on:
push:
branches:
- mirror-main
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: mirror-main
base: main
title: "Sync from local git mirror"
body: "Automated PR created from local git mirror branch main."