kernel-upgrade: Improve error handling

This commit is contained in:
Mattias Walström
2025-10-31 09:47:37 +01:00
parent 98b30d7d45
commit a280960d47
2 changed files with 40 additions and 12 deletions
@@ -25,6 +25,7 @@ jobs:
- name: Fetch kernel.org and check for 6.12 release
id: check
run: |
set -e -o pipefail
# Fetch the kernel.org frontpage and extract 6.12 version
CURRENT_VERSION=$(curl -s https://www.kernel.org/ | grep -oP '6\.12\.\d+' | head -n1)
@@ -56,6 +57,7 @@ jobs:
- name: Set up git credentials
if: steps.check.outputs.new_release == 'true'
run: |
set -e -o pipefail
git config --global user.email "ael-bot@users.noreply.github.com"
git config --global user.name "ael-bot"
@@ -68,6 +70,7 @@ jobs:
env:
GIT_TERMINAL_PROMPT: 0
run: |
set -e -o pipefail
./utils/kernel-upgrade.sh linux
- name: Create pull request