action: compile and commit new kernel
This commit is contained in:
parent
78ec308f48
commit
9fb24cc7a6
1 changed files with 10 additions and 4 deletions
14
.github/workflows/cron.yml
vendored
14
.github/workflows/cron.yml
vendored
|
@ -25,6 +25,7 @@ jobs:
|
||||||
|
|
||||||
- name: Fetch latest kernel
|
- name: Fetch latest kernel
|
||||||
if: steps.check.outputs.sha != ''
|
if: steps.check.outputs.sha != ''
|
||||||
|
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}}"
|
||||||
|
@ -33,10 +34,15 @@ jobs:
|
||||||
git fetch --depth=1 origin ${{steps.check.outputs.sha}}
|
git fetch --depth=1 origin ${{steps.check.outputs.sha}}
|
||||||
echo "checkout"
|
echo "checkout"
|
||||||
git checkout ${{steps.check.outputs.sha}}
|
git checkout ${{steps.check.outputs.sha}}
|
||||||
|
echo "::set-output name=tag::$(git describe --tags)"
|
||||||
cd ..
|
cd ..
|
||||||
git diff --no-ext-diff
|
git diff --no-ext-diff
|
||||||
|
|
||||||
# - name: Commit the new kernel
|
- name: Compile latest kernel
|
||||||
# uses: stefanzweifel/git-auto-commit-action@v4
|
if: steps.check.outputs.sha != ''
|
||||||
# with:
|
run: go run cmd/compile/main.go
|
||||||
# commit_message: kernel ${{steps.check.outputs.sha}}
|
|
||||||
|
- name: Commit the new kernel
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: kernel ${{steps.fetch.outputs.tag}}
|
||||||
|
|
Loading…
Reference in a new issue