Rename mirror.yml to .github/workflows/mirror.yml
This commit is contained in:
17
.github/workflows/mirror.yml
vendored
Normal file
17
.github/workflows/mirror.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Mirror to Gitea
|
||||
|
||||
on:
|
||||
push:
|
||||
delete:
|
||||
|
||||
jobs:
|
||||
git-sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Sync to Gitea
|
||||
uses: wei/git-sync@v3
|
||||
with:
|
||||
source_repo: "ваш-логин/ваш-репозиторий-в-github"
|
||||
source_branch: "main"
|
||||
destination_repo: "https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@ваша-gitea.com/логин/репозиторий.git"
|
||||
destination_branch: "main"
|
||||
Reference in New Issue
Block a user