From e8b6d607b30cf5f9ed9a9e1e1c71319df6f9f385 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Thu, 24 Mar 2022 08:01:56 +0100 Subject: [PATCH] github action check subshell failure --- .github/workflows/cron.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 5c6f0b2..eefd63f 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -19,7 +19,10 @@ jobs: - name: Check latest kernel version from https://archive.raspberrypi.org/debian/ id: check - run: echo "::set-output name=sha::$(go run ./cmd/check-update/main.go)" + run: | + # split lines to fail on exit != 0 + sha="$(go run ./cmd/check-update/main.go)" + echo "::set-output name=sha::$sha" - name: Fetch latest kernel if: steps.check.outputs.sha != '' @@ -29,7 +32,10 @@ jobs: cd linux-sources git fetch --depth=1 origin ${{steps.check.outputs.sha}} git checkout ${{steps.check.outputs.sha}} - echo "::set-output name=version::$(make kernelversion)" + + # split lines to fail on exit != 0 + version="$(make kernelversion)" + echo "::set-output name=version::$version" cd .. git diff --no-ext-diff