Implement Github workflow to automatically bump kernel versions (#432)

* Add script for automatically do the kernel version bumps

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* Add github workflow to automatically bump kernel versions

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: fix comment

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
Adel Kara Slimane
2022-02-12 23:18:21 +01:00
committed by GitHub
parent a12662f66c
commit 174091792e
5 changed files with 159 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
name: Automatic version bumping
on:
schedule:
- cron: '3 */6 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git config user.name "BIG UGLY FROGMINER"
git config user.email BIG_UGLY_FROGMINER@froggi.es
./update-kernel-versions.sh
changes=$(cat kernel_updates)
if [ -n "$changes" ]; then
git add PKGBUILD linux-tkg-config/prepare
git commit --author="Adel KARA SLIMANE <adel.ks@zegrapher.com>" -m "version bumps:$changes"
git push
fi