github: make kernelversion
This commit is contained in:
parent
8e0b341ec1
commit
4885025eac
1 changed files with 15 additions and 8 deletions
23
.github/workflows/cron.yml
vendored
23
.github/workflows/cron.yml
vendored
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue