-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 758 Bytes
/
mirror-gitlab.yml
File metadata and controls
32 lines (27 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Mirror to GitLab
on:
push:
branches: [master]
delete:
permissions:
contents: read
jobs:
mirror:
name: Mirror to GitLab
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Mirror to GitLab
env:
GITLAB_SSH_KEY: ${{ secrets.GITLAB_SSH_KEY }}
run: |
mkdir -p ~/.ssh
echo "$GITLAB_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts 2>/dev/null
git remote add gitlab git@gitlab.com:marcstraube/zappzarapp-node-browser-utils.git
git push gitlab --all --force
git push gitlab --tags --force