From 2fbc8e7737138d1ffe9261d2e3dce3870103e99e Mon Sep 17 00:00:00 2001 From: oliverpool Date: Wed, 23 Mar 2022 20:16:22 +0100 Subject: [PATCH] github: tag kernelversion --- .github/workflows/cron.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index a33ede7..a87a3ab 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -25,31 +25,23 @@ jobs: - name: Fetch latest kernel if: steps.check.outputs.sha != '' + id: fetch 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}} + echo "::set-output name=version::$(make kernelversion)" 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 "make kernelversion" - make kernelversion - echo "version" - echo "::set-output name=version::$(make kernelversion)" - - name: Compile latest kernel if: steps.check.outputs.sha != '' run: go run cmd/compile/main.go - name: Commit the new kernel + if: steps.check.outputs.sha != '' uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: kernel ${{steps.fetch.outputs.version}} + tagging_message: v1.0.0-${{steps.fetch.outputs.version}}