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 2cb5d94 commit cac017e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/sync-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- run: |
mkdir -p ~/.ssh
ssh-keyscan gitlab.bangbang93.com >> ~/.ssh/known_hosts
echo "$MIRROR_SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
git remote add gitlab [email protected]:bmclapi/openbmclapi.git
git push gitlab HEAD:master --force
git push gitlab --tags --force
env:
MIRROR_SSH_KEY: ${{ secrets.MIRROR_SSH_KEY }}

0 comments on commit cac017e

Please sign in to comment.