armbian-build/.github/workflows/build-kernel-pr.yml
Igor Pečovnik 1cccbf481e
Several small fixes to CI scripting (#3905)
* Restore permission to make script work

We need to rework this, but until then things has to work.

* Permission issuers

* We don't try to cancel previous as it doesn't work

* Update

* Renaming, remove deprecated

* Add comments

* Prevent running scorecard on forks

* Update
2022-06-18 23:53:45 +02:00

57 lines
1.5 KiB
YAML

name: Build Kernels at PR
#
# Generates kernels at PR if their code, patches or config was changed in any way. Packages are uploaded as Github action build artefakts
# Build starts if review is requested or if PR is marked for review
#
on:
workflow_dispatch:
pull_request:
types: [review_requested, ready_for_review]
paths-ignore:
- .github/workflows
jobs:
Check:
name: Checking
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/check-for-changes.yml@master
with:
reference: ${{ github.event.pull_request.head.sha }}
runner: small
Build:
needs: Check
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/build-kernel.yml@master
with:
uploading: "false"
runner: "fast"
reference: ${{ github.event.pull_request.head.sha }}
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }}
GPG_KEY2: ${{ secrets.GPG_KEY2 }}
GPG_PASSPHRASE2: ${{ secrets.GPG_PASSPHRASE2 }}
SCRIPTS_ACCESS_TOKEN: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}
jobsend:
name: Cleanup
needs: [Build]
runs-on: "small"
if: ${{ github.repository_owner == 'Armbian' }}
steps:
- uses: geekyeggo/delete-artifact@v1
with:
name: changes
- uses: geekyeggo/delete-artifact@v1
with:
name: hash