We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e08f8 commit 01456c9Copy full SHA for 01456c9
.github/workflows/mirror.yml
@@ -0,0 +1,24 @@
1
+name: mirror
2
+
3
+on:
4
+ push:
5
+ branches: master
6
+ tags:
7
+ - 'v*.*.*'
8
9
+jobs:
10
+ mirror:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ with:
15
+ fetch-depth: 0
16
+ - uses: webfactory/ssh-agent@v0.4.1
17
18
+ ssh-private-key: ${{ secrets.MIRROR_SSH_KEY }}
19
+ - name: Mirror all origin branches and tags to internal repo
20
+ run: |
21
+ export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
22
+ git remote add internal ${{ secrets.INTERNAL_REPO }}
23
+ git push internal --all -f
24
+ git push internal --tags -f
0 commit comments