-
Notifications
You must be signed in to change notification settings - Fork 19
37 lines (32 loc) · 938 Bytes
/
Copy pathgit-mirror.yml
File metadata and controls
37 lines (32 loc) · 938 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
33
34
35
36
37
---
name: Git Mirror
# Mirror git repo to other sites
on:
workflow_dispatch:
push:
branches:
- develop
permissions:
contents: read
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: "Sync repo codeberg"
uses: yesolutions/mirror-action@662fce0eced8996f64d7fa264d76cddd84827f33
with:
REMOTE: ${{ secrets.CODEBERG_URL }}
GIT_USERNAME: ${{ secrets.CODEBERG_USER }}
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}
- name: "Sync repo gitlab"
uses: yesolutions/mirror-action@662fce0eced8996f64d7fa264d76cddd84827f33
with:
REMOTE: ${{ secrets.GITLAB_URL }}
REMOTE_NAME: gitlab
GIT_USERNAME: ${{ secrets.GITLAB_USER }}
GIT_PASSWORD: ${{ secrets.GITLAB_TOKEN }}