tangled
alpha
login
or
join now
kitten.sh
/
fiber-dev
0
fork
atom
WIP: Node.js isolation primitive to run asynchronous worker-like operations without leaking async IO
0
fork
atom
overview
issues
pulls
pipelines
Add Mirror action
kitten.sh
8 months ago
20f7b3bb
61350310
+25
1 changed file
expand all
collapse all
unified
split
.github
workflows
mirror.yml
+25
.github/workflows/mirror.yml
reviewed
···
1
1
+
name: Mirror
2
2
+
on:
3
3
+
push:
4
4
+
branches:
5
5
+
- main
6
6
+
jobs:
7
7
+
mirror:
8
8
+
runs-on: ubuntu-latest
9
9
+
steps:
10
10
+
- name: Checkout repository
11
11
+
uses: actions/checkout@v4
12
12
+
with:
13
13
+
fetch-depth: 0
14
14
+
fetch-tags: true
15
15
+
- name: Mirror
16
16
+
env:
17
17
+
MIRROR_SSH_KEY: ${{ secrets.MIRROR_SSH_KEY }}
18
18
+
GIT_SSH_COMMAND: 'ssh -o StrictHostKeyChecking=yes'
19
19
+
run: |
20
20
+
mkdir -p ~/.ssh
21
21
+
echo "$MIRROR_SSH_KEY" > ~/.ssh/id_rsa
22
22
+
chmod 600 ~/.ssh/id_rsa
23
23
+
ssh-keyscan -H knot.kitten.sh >> ~/.ssh/known_hosts
24
24
+
git remote add mirror "git@knot.kitten.sh:kitten.sh/${GITHUB_REPOSITORY#*/}"
25
25
+
git push --mirror mirror