Add workflow for weekly update checks

This change adds a workflow that will check weekly whether a new release
is available for the current actively maintained Linux stable branches.
This commit is contained in:
Fabian Mastenbroek 2020-11-12 17:26:52 +01:00
parent 1dc101c237
commit ed0d145cdc
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85
2 changed files with 61 additions and 0 deletions

10
scripts/check.sh Executable file
View file

@ -0,0 +1,10 @@
#1/bin/bash
# Script to check for new kernel release
set -e
set -o pipefail
MAJOR=$(echo $1 | sed -e "s/^v//" -e "s/\.[^.]*$//")
CURRENT=$(scripts/version.sh -L)
NEW=$(curl -s https://www.kernel.org/releases.json | jq -r ".releases[]|select(.version | startswith(\"$MAJOR\")) | .version")
[[ "$CURRENT" = "$NEW" ]] || echo $NEW