This commit is contained in:
Igor Pecovnik
2022-06-18 09:33:00 +02:00
parent 10ba4794f8
commit 11ffa5b9b7

View File

@@ -21,6 +21,7 @@ on:
required: true
KNOWN_HOSTS_UPLOAD:
required: true
jobs:
Update:
@@ -46,7 +47,7 @@ jobs:
[ -s changes ] || echo "SKIP=yes" >> $GITHUB_ENV
- name: Checkout Armbian build script
if: ${{ env.SKIP != 'yes' }}
if: ${{ github.repository_owner == 'Armbian' && env.SKIP != 'yes' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
@@ -56,7 +57,7 @@ jobs:
clean: false
- name: Checkout Armbian support scripts
if: ${{ env.SKIP != 'yes' }}
if: ${{ github.repository_owner == 'Armbian' && env.SKIP != 'yes' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
@@ -65,7 +66,7 @@ jobs:
clean: false
- name: Import GPG key
if: ${{ env.SKIP != 'yes' }}
if: ${{ github.repository_owner == 'Armbian' && env.SKIP != 'yes' }}
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_KEY2 }}
@@ -75,8 +76,9 @@ jobs:
git-commit-gpgsign: true
- name: Bump version
if: ${{ env.SKIP != 'yes' }}
if: ${{ github.repository_owner == 'Armbian' && env.SKIP != 'yes' }}
run: |
cd build
git symbolic-ref --short -q HEAD
if [[ "$(git symbolic-ref --short -q HEAD)" == nightly ]]; then
@@ -95,6 +97,7 @@ jobs:
git config --global user.email "info@armbian.com"
git config --global user.name "Armbianworker"
git add VERSION
git commit -m "Bumping to new version" -m "" -m "Adding following kernels:" -m "$(find output/debs-beta/ -type f -name "linux-image*${CURRENT_VERSION}*.deb" -printf "%f\n" | sort)"
git commit -m "Bumping to new version" -m "" -m "Adding following kernels:" \
-m "$(find output/debs-beta/ -type f -name "linux-image*${CURRENT_VERSION}*.deb" -printf "%f\n" | sort)"
git push
fi