-
-
Notifications
You must be signed in to change notification settings - Fork 0
110 lines (108 loc) · 3.73 KB
/
repo-sync.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: repo-sync
on:
schedule:
- cron: "* */4 * * *"
push:
branches:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
repos_list:
# Minecraft server
- {
source: "git@github.com:itzg/mc-monitor.git",
destination: "git@github.com:bensuperpc/mc-monitor.git",
}
- {
source: "git@github.com:itzg/docker-minecraft-server.git",
destination: "git@github.com:bensuperpc/docker-minecraft-server-1.git",
}
- {
source: "git@github.com:itzg/docker-rcon-web-admin.git",
destination: "git@github.com:bensuperpc/docker-rcon-web-admin.git",
}
- {
source: "git@github.com:itzg/docker-mc-backup.git",
destination: "git@github.com:bensuperpc/docker-mc-backup.git",
}
#- {
# source: "git@github.com:itzg/docker-bungeecord.git",
# destination: "git@github.com:bensuperpc/docker-bungeecord.git",
# }
# Minetest game
- {
source: "git@github.com:minetest/minetest.git",
destination: "git@github.com:bensuperpc/minetest.git",
}
- {
source: "git@github.com:minetest/minetest_game.git",
destination: "git@github.com:bensuperpc/minetest_game.git",
}
- {
source: "git@github.com:minetest/irrlicht.git",
destination: "git@github.com:bensuperpc/irrlicht.git",
}
- {
source: "git@github.com:minetest/minetestmapper.git",
destination: "git@github.com:bensuperpc/minetestmapper.git",
}
- {
source: "git@github.com:minetest/contentdb.git",
destination: "git@github.com:bensuperpc/contentdb.git",
}
# Programs
- {
source: "git@github.com:dockcross/dockcross.git",
destination: "git@github.com:bensuperpc/dockcross.git",
}
- {
source: "git@github.com:crosstool-ng/crosstool-ng.git",
destination: "git@github.com:bensuperpc/crosstool-ng.git",
}
- {
source: "git@github.com:ClangBuiltLinux/tc-build.git",
destination: "git@github.com:bensuperpc/tc-build.git",
}
# - {
# source: "git://repo.or.cz/tinycc.git",
# destination: "git@github.com:bensuperpc/tinycc.git",
# }
# OS
# - {
# source: "http://repo.or.cz/kolibrios.git",
# destination: "git@github.com:bensuperpc/kolibrios.git",
# }
# Scripts
- {
source: "git@github.com:bensuperpc/gogrepoc.git",
destination: "git@github.com:bensuperpc/gogrepoc.git",
}
steps:
- name: repo-sync branch
uses: wei/git-sync@v3.0.0
with:
source_repo: ${{ matrix.repos_list.source }}
source_branch: "refs/remotes/source/*"
destination_repo: ${{ matrix.repos_list.destination }}
destination_branch: "refs/heads/*"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: repo-sync Tag
uses: wei/git-sync@v3.0.0
with:
source_repo: ${{ matrix.repos_list.source }}
source_branch: "refs/tags/*"
destination_repo: ${{ matrix.repos_list.destination }}
destination_branch: "refs/tags/*"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}