From 806848392e08f4bdea871c692f78ed2fbdf6e371 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Thu, 11 Sep 2025 15:49:19 +0200 Subject: [PATCH] Make release headers dynamicall with a bash script to keep svg files refreshing. --- release-headers/community.sh | 26 +++++++++++++++++++ release-headers/os.sh | 25 ++++++++++++++++++ userpatches/gha/chunks/050.single_header.yaml | 22 +++------------- 3 files changed, 55 insertions(+), 18 deletions(-) create mode 100755 release-headers/community.sh create mode 100755 release-headers/os.sh diff --git a/release-headers/community.sh b/release-headers/community.sh new file mode 100755 index 00000000..151bd40b --- /dev/null +++ b/release-headers/community.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +TS=$(date +%s) + +cat < + Armbian logo +

Community releases

+

+ +

+ Armbian Linux CURRENT   + Armbian Linux EDGE +

+ +

+ Community courtesy builds are not maintained by Armbian team, but exist thanks to + community support. +

+EOF diff --git a/release-headers/os.sh b/release-headers/os.sh new file mode 100755 index 00000000..c9d54abf --- /dev/null +++ b/release-headers/os.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +TS=$(date +%s) + +cat < + Armbian logo +

Rolling releases

+

+ +

+ Armbian Linux CURRENT   + Armbian Linux EDGE +

+ +

+ Rolling releases are daily builds with the latest kernel and userspace packages for supported hardware. +

+EOF diff --git a/userpatches/gha/chunks/050.single_header.yaml b/userpatches/gha/chunks/050.single_header.yaml index bf15afb4..6686676c 100644 --- a/userpatches/gha/chunks/050.single_header.yaml +++ b/userpatches/gha/chunks/050.single_header.yaml @@ -317,24 +317,10 @@ jobs: - name: "Generate body file" if: ${{ (github.event.inputs.skipImages || [[skipImagesDefaults]]) != 'yes' }} run: | - echo " -

- -

-

Rolling releases

-

- Armbian Linux stable - Armbian Linux rolling -

-
- - - rolling releases are available at the bottom of official download pages - - if you want to change automated builds variants, edit .yaml files - - for old builds with unknown support status check archives - -
-   -

" > body.html + # Make html document + if [[ -f release-headers/${{ env.RELEASE_REPOSITORY }}.sh ]]; then + bash release-headers/${{ env.RELEASE_REPOSITORY }}.sh > body.html + fi - uses: ncipollo/release-action@v1 if: ${{ (github.event.inputs.nightlybuild || [[nightlybuildDefaults]]) == 'yes' && (github.event.inputs.skipImages || [[skipImagesDefaults]]) != 'yes' }}