-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.23 KB
/
mirror.yaml
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
38
39
40
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: 2024 Shun Sakai
#
# SPDX-License-Identifier: CC0-1.0
name: Mirror to mirror repositories
on:
push:
branches:
- "develop"
- "master"
workflow_dispatch:
jobs:
gitlab:
name: Mirror to GitLab
if: github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to GitLab
uses: yesolutions/mirror-action@v0.7.0
with:
REMOTE: "https://gitlab.com/sorairolake/japanese-era-dataset.git"
GIT_USERNAME: ${{ github.actor }}
GIT_PASSWORD: ${{ secrets.GITLAB_TOKEN }}
PUSH_ALL_REFS: "false"
codeberg:
name: Mirror to Codeberg
if: github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to Codeberg
uses: yesolutions/mirror-action@v0.7.0
with:
REMOTE: "https://codeberg.org/sorairolake/japanese-era-dataset.git"
GIT_USERNAME: ${{ github.actor }}
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}
PUSH_ALL_REFS: "false"