github action check subshell failure
This commit is contained in:
parent
0269516c7f
commit
e8b6d607b3
1 changed files with 8 additions and 2 deletions
10
.github/workflows/cron.yml
vendored
10
.github/workflows/cron.yml
vendored
|
@ -19,7 +19,10 @@ jobs:
|
||||||
|
|
||||||
- name: Check latest kernel version from https://archive.raspberrypi.org/debian/
|
- name: Check latest kernel version from https://archive.raspberrypi.org/debian/
|
||||||
id: check
|
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
|
- name: Fetch latest kernel
|
||||||
if: steps.check.outputs.sha != ''
|
if: steps.check.outputs.sha != ''
|
||||||
|
@ -29,7 +32,10 @@ jobs:
|
||||||
cd linux-sources
|
cd linux-sources
|
||||||
git fetch --depth=1 origin ${{steps.check.outputs.sha}}
|
git fetch --depth=1 origin ${{steps.check.outputs.sha}}
|
||||||
git checkout ${{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 ..
|
cd ..
|
||||||
git diff --no-ext-diff
|
git diff --no-ext-diff
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue