Skip to content

Commit

Permalink
Add generator
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 30, 2023
1 parent 286dda0 commit 469452c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 469452c

Please sign in to comment.