-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (53 loc) · 1.76 KB
/
merge-linux.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
name: Merge Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
linux-5_10:
runs-on: ubuntu-latest
env:
KERNEL_URL: https://cdn.kernel.org/pub/linux/kernel/v5.x/
KERNEL_VERSION: linux-5.10.214
KERNEL_BRANCH: linux-5.10
steps:
- uses: actions/checkout@v3
- name: Set id
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Merge ${{env.KERNEL_BRANCH}}
continue-on-error: true
run: ./init.sh -u ${{env.KERNEL_URL}} -v ${{env.KERNEL_VERSION}} -b ${{env.KERNEL_BRANCH}}
- name: Push changes ${{env.KERNEL_BRANCH}}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SY_PAT }}
branch: ${{env.KERNEL_BRANCH}}
directory: kernel/dst/${{env.KERNEL_BRANCH}}/${{env.KERNEL_BRANCH}}
force: true
linux-5_15:
runs-on: ubuntu-latest
env:
KERNEL_URL: https://cdn.kernel.org/pub/linux/kernel/v5.x/
KERNEL_VERSION: linux-5.15.153
KERNEL_BRANCH: linux-5.15
steps:
- uses: actions/checkout@v3
- name: Set id
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Merge ${{env.KERNEL_BRANCH}}
continue-on-error: true
run: ./init.sh -u ${{env.KERNEL_URL}} -v ${{env.KERNEL_VERSION}} -b ${{env.KERNEL_BRANCH}}
- name: Push changes ${{env.KERNEL_BRANCH}}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SY_PAT }}
branch: ${{env.KERNEL_BRANCH}}
directory: kernel/dst/${{env.KERNEL_BRANCH}}/${{env.KERNEL_BRANCH}}
force: true