Skip to content

Commit

Permalink
Update merge-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SamulKyull authored Apr 12, 2024
1 parent 06a72b4 commit 4f3d4e0
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/merge-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,53 @@ permissions:
contents: write

jobs:
linux-5_10:
setup:
runs-on: ubuntu-latest
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 Linux 5.10
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: Merge ${{env.KERNEL_BRANCH}}
continue-on-error: true
run: ./init.sh -u https://cdn.kernel.org/pub/linux/kernel/v5.x/ -v linux-5.10.214 -b linux-5.10
run: ./init.sh -u ${{env.KERNEL_URL}} -v ${{env.KERNEL_VERSION}} -b ${{env.KERNEL_BRANCH}}

- name: Push changes Linux 5.10
- name: Push changes ${{env.KERNEL_BRANCH}}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SY_PAT }}
branch: linux-5.10
directory: kernel/dst/linux-5.15/linux-5.10
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.154
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 Linux 5.15
- name: Merge ${{env.KERNEL_BRANCH}}
continue-on-error: true
run: ./init.sh -u https://cdn.kernel.org/pub/linux/kernel/v5.x/ -v linux-5.15.154 -b linux-5.15
run: ./init.sh -u ${{env.KERNEL_URL}} -v ${{env.KERNEL_VERSION}} -b ${{env.KERNEL_BRANCH}}

- name: Push changes Linux 5.15
- name: Push changes ${{env.KERNEL_BRANCH}}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SY_PAT }}
branch: linux-5.15
directory: kernel/dst/linux-5.15/linux-5.15
branch: ${{env.KERNEL_BRANCH}}
directory: kernel/dst/${{env.KERNEL_BRANCH}}/${{env.KERNEL_BRANCH}}
force: true

0 comments on commit 4f3d4e0

Please sign in to comment.