Create MirrorSync.yml

This commit is contained in:
Pesy Wu 2024-01-18 12:24:24 +08:00 committed by GitHub
parent cf6a092602
commit d13d2d4268
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

21
.github/workflows/MirrorSync.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: 'SyncMirror'
on:
workflow_dispatch:
push:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: 'Checkout codes'
uses: actions/checkout@v2
- name: 'Sync'
id: commit
run: |
git fetch --unshallow
git checkout master
git remote add gitea https://${{ secrets.GITEA_USERNAME }}:${{ secrets.GITEA_PASSWORD }}@git.bili33.top/GamerNoTitle/wyycg-AutoCheckin.git
git push gitea master