Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: mirror

on:
push:
branches: master
tags:
- 'v*.*.*'

jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.MIRROR_SSH_KEY }}
- name: Mirror all origin branches and tags to internal repo
run: |
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
git remote add internal ${{ secrets.INTERNAL_REPO }}
git push internal --all -f
git push internal --tags -f