Skip to content

Commit eee2d0f

Browse files
committed
Initial workflow for mirroring repositories
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
0 parents  commit eee2d0f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Mirror
2+
on:
3+
schedule:
4+
- cron: "0 */6 * * *"
5+
workflow_dispatch:
6+
jobs:
7+
rpms_kernel:
8+
name: rpms/kernel
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Clone rpms/kernel
12+
run: git clone --bare https://src.fedoraproject.org/rpms/kernel.git .
13+
- name: Mirror rpms/kernel
14+
run: git push --mirror "https://token:$MIRRORING_TOKEN@github.com/ClangBuiltLinux/rpms_kernel.git"
15+
env:
16+
MIRRORING_TOKEN: ${{ secrets.MIRRORING_TOKEN }}

0 commit comments

Comments
 (0)