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:
committed by
GitHub
parent
a12662f66c
commit
174091792e
21
.github/workflows/auto-update-kernel-versions.yml
vendored
Normal file
21
.github/workflows/auto-update-kernel-versions.yml
vendored
Normal 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
|
Reference in New Issue
Block a user