From 469452c65943e2de6aabd7b33dcdb5f6569f95a2 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 30 Dec 2023 14:47:24 +0100 Subject: [PATCH] Add generator --- .github/workflows/generate.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/generate.yml diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml new file mode 100644 index 000000000000..18e13debb983 --- /dev/null +++ b/.github/workflows/generate.yml @@ -0,0 +1,35 @@ +name: Recreate Matrix (push) +on: + push: + branches: + - 'main' + paths: + - "config/boards/*" + - ".github/workflows/generate.yml" + workflow_dispatch: +jobs: + + build: + name: Recreate action + runs-on: ubuntu-latest + steps: + + - name: Checkout Armbian Framework + uses: actions/checkout@v4 + with: + repository: armbian/build + fetch-depth: 0 + clean: false + path: build + + - name: "Generate builds lists" + run: | + + cat <<- EOF > action.yml + name: Generated + on: + workflow_dispatch: + EOF + # generate lists to include them + ls -1 build/config/boards/*.conf | cut -d"/" -f4 | cut -d"." -f1 | uniq | sed 's/.*/ - &/' >> action.yml + cat action.yml