-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 984 Bytes
/
backport.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
name: Backport kernel to existing releases
on:
workflow_dispatch:
push:
branches:
- 'maint-6.6'
jobs:
backport:
runs-on: ubuntu-latest
# Matrix build for maintenance of multiple Garden Linux releases
strategy:
fail-fast: false
matrix:
branch: ['1443', '1592']
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@v4
with:
ref: maint-6.6
- run: |
LATEST_COMMIT=$(git rev-parse --verify origin/maint-6.6)
echo backporting commit $LATEST_COMMIT
git config --global user.name "Garden Linux Builder"
git config --global user.email "[email protected]"
git fetch origin
git checkout origin/rel-${{ matrix.branch }}
git checkout -b rel-${{ matrix.branch }}
git cherry-pick $LATEST_COMMIT
git push --set-upstream origin rel-${{ matrix.branch }}