Skip to content

Commit d72062a

Browse files
authored
Create mirror.yml
1 parent e91c7af commit d72062a

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Mirror to Gitverse
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Mirror to Gitverse
17+
run: |
18+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
19+
git config --global user.name "GitHub Actions"
20+
21+
git remote add gitverse https://oauth2:${{ secrets.GITVERSE_TOKEN }}@gitverse.ru/vladelo/FastAPI-Online-Shop.git
22+
git push --mirror gitverse

0 commit comments

Comments
 (0)