github: make kernelversion

This commit is contained in:
oliverpool 2022-03-23 19:56:46 +01:00
parent 8e0b341ec1
commit 4885025eac

View file

@ -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}}