From 4885025eacfcccdd571d2d99f6599e7235bba2ae Mon Sep 17 00:00:00 2001 From: oliverpool Date: Wed, 23 Mar 2022 19:56:46 +0100 Subject: [PATCH] github: make kernelversion --- .github/workflows/cron.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index b2127dd..a33ede7 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -25,18 +25,25 @@ jobs: - name: Fetch latest kernel if: steps.check.outputs.sha != '' + run: | + git submodule update --init --depth=1 linux-sources + cd linux-sources + git fetch --depth=1 origin ${{steps.check.outputs.sha}} + git checkout ${{steps.check.outputs.sha}} + cd .. + git diff --no-ext-diff + + - name: Temp + if: steps.check.outputs.sha == '' id: fetch run: | git submodule update --init --depth=1 linux-sources echo "sha ${{steps.check.outputs.sha}}" cd linux-sources - echo "fetch" - git fetch --depth=1 origin ${{steps.check.outputs.sha}} - echo "checkout" - git checkout ${{steps.check.outputs.sha}} - echo "::set-output name=tag::$(git describe --tags)" - cd .. - git diff --no-ext-diff + echo "make kernelversion" + make kernelversion + echo "version" + echo "::set-output name=version::$(make kernelversion)" - name: Compile latest kernel if: steps.check.outputs.sha != '' @@ -45,4 +52,4 @@ jobs: - name: Commit the new kernel uses: stefanzweifel/git-auto-commit-action@v4 with: - commit_message: kernel ${{steps.fetch.outputs.tag}} + commit_message: kernel ${{steps.fetch.outputs.version}}