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
|
- name: Fetch latest kernel
|
||||||
if: steps.check.outputs.sha != ''
|
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
|
id: fetch
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init --depth=1 linux-sources
|
git submodule update --init --depth=1 linux-sources
|
||||||
echo "sha ${{steps.check.outputs.sha}}"
|
echo "sha ${{steps.check.outputs.sha}}"
|
||||||
cd linux-sources
|
cd linux-sources
|
||||||
echo "fetch"
|
echo "make kernelversion"
|
||||||
git fetch --depth=1 origin ${{steps.check.outputs.sha}}
|
make kernelversion
|
||||||
echo "checkout"
|
echo "version"
|
||||||
git checkout ${{steps.check.outputs.sha}}
|
echo "::set-output name=version::$(make kernelversion)"
|
||||||
echo "::set-output name=tag::$(git describe --tags)"
|
|
||||||
cd ..
|
|
||||||
git diff --no-ext-diff
|
|
||||||
|
|
||||||
- name: Compile latest kernel
|
- name: Compile latest kernel
|
||||||
if: steps.check.outputs.sha != ''
|
if: steps.check.outputs.sha != ''
|
||||||
|
@ -45,4 +52,4 @@ jobs:
|
||||||
- name: Commit the new kernel
|
- name: Commit the new kernel
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: kernel ${{steps.fetch.outputs.tag}}
|
commit_message: kernel ${{steps.fetch.outputs.version}}
|
||||||
|
|
Loading…
Reference in a new issue