Skip to content

Commit da884df

Browse files
committed
Add Actions config for mirroring
Signed-off-by: Andrew Paniakin <[email protected]>
1 parent 461ccc6 commit da884df

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/mirror.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Mirror
2+
3+
on:
4+
push:
5+
branches:
6+
- mirror
7+
schedule:
8+
- cron: 0 */2 * * *
9+
workflow_dispatch:
10+
11+
jobs:
12+
mirror:
13+
runs-on: ubuntu-latest
14+
name: Mirror
15+
steps:
16+
- name: Clone
17+
run: |
18+
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-stable
19+
git -C linux-stable remote add openela https://github.com/openela/kernel-lts.git
20+
git -C linux-stable remote update
21+
22+
- name: Push
23+
working-directory: linux-stable
24+
env:
25+
LINUX_AMZN: https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/amazonlinux/linux.git
26+
run: |
27+
git push ${LINUX_AMZN} '+refs/remotes/origin/*:refs/heads/*' '+refs/tags/*:refs/tags/*'
28+
git push ${LINUX_AMZN} '+refs/remotes/openela/linux-4.14.y:refs/heads/linux-4.14.y'

0 commit comments

Comments
 (0)