CI needs to merge nightly from master before start (#2892)

Also changed cronjob for start
This commit is contained in:
Igor Pečovnik
2021-06-10 23:28:33 +02:00
committed by GitHub
parent bd222470d5
commit 951d6bc26e

View File

@@ -2,18 +2,59 @@ name: Build
on:
schedule:
- cron: '0 */8 * * *'
- cron: '0 4 * * *'
workflow_dispatch:
# push:
# branches: master
jobs:
merge:
name: Merge nightly
runs-on: [self-hosted, Linux, x64]
if: ${{ github.repository_owner == 'Armbian' }}
steps:
- name: Checkout Armbian build script
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: armbian/build
path: build
ref: nightly
clean: false
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_KEY2 }}
passphrase: ${{ secrets.GPG_PASSPHRASE2 }}
workdir: build
git-user-signingkey: true
git-commit-gpgsign: true
- name: Merge master into nightly
run: |
cd build
git config --global user.email "info@armbian.com"
git config --global user.name "Armbianworker"
git checkout master
git fetch
git merge origin/master
git checkout nightly
git merge master nightly
git push
cache:
name: Create rootfs cache
needs: merge
runs-on: [self-hosted, Linux, x64, cache]
if: ${{ github.repository_owner == 'Armbian' }}
steps:
@@ -175,6 +216,7 @@ jobs:
#
name: Changed beta kernels
needs: merge
runs-on: [self-hosted, Linux, x64, big]
if: ${{ github.repository_owner == 'Armbian' }}
steps:
@@ -318,6 +360,7 @@ jobs:
#
name: Changed stable edge kernels
needs: merge
runs-on: [self-hosted, Linux, x64, big]
if: ${{ github.repository_owner == 'Armbian' }}
steps: