Skip to content

Commit

Permalink
chore: 主动推送mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jan 24, 2024
1 parent a032f97 commit 2f20336
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/sync-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Sync Mirror'

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
ssh-keyscan gitlab.bangbang93.com >> ~/.ssh/known_hosts
echo "$MIRROR_SSH_KEY" > ~/.ssh/id_rsa
git remote add gitlab gitlab.bangbang93.com:bangbang93/openbmclapi.git
git push gitlab HEAD:master

0 comments on commit 2f20336

Please sign in to comment.