mirror of
https://zotify.xyz/zotify/zotify.git
synced 2024-11-09 16:52:00 +01:00
Create pushmirror.yml
This commit is contained in:
parent
04207597e5
commit
08d8e229bb
1 changed files with 27 additions and 0 deletions
27
.github/workflows/pushmirror.yml
vendored
Normal file
27
.github/workflows/pushmirror.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Push mirror
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
|
||||
jobs:
|
||||
push:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: setup git
|
||||
run: |
|
||||
git config user.name "GitHub Actions Bot"
|
||||
git config user.email "<>"
|
||||
|
||||
- name: set upstream
|
||||
run: |
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITEA_TOKEN }}@zotify.xyz/zotify/zotify
|
||||
git remote add old https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/zotify-dev/zotify
|
||||
|
||||
- name: push repo
|
||||
run: |
|
||||
git fetch --unshallow old
|
||||
git push
|
Loading…
Reference in a new issue