From b948320484ead6624d40f4a60de3d56cd44021e3 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 29 Dec 2025 16:40:53 +0100 Subject: [PATCH] Fix workflow: correct name, remove duplicate commands, fix paths - Update workflow name from "Rewrite kernel configs" to "Update image-info.json" - Remove unused matrix outputs from job configuration - Fix duplicate cd command in commit step - Fix git add path to use correct data/image-info.json - Correct commit message to describe actual change - Rename job from build-matrix to update-image-info Signed-off-by: Igor Pecovnik --- .github/workflows/data-update-image-info.yml | 72 ++++++++++++++++++++ README.md | 1 + 2 files changed, 73 insertions(+) create mode 100644 .github/workflows/data-update-image-info.yml diff --git a/.github/workflows/data-update-image-info.yml b/.github/workflows/data-update-image-info.yml new file mode 100644 index 00000000..99814027 --- /dev/null +++ b/.github/workflows/data-update-image-info.yml @@ -0,0 +1,72 @@ +name: "Data: Update image-info JSON" + +on: + schedule: + - cron: "0 0 * * MON" + workflow_dispatch: + +concurrency: + group: update-image-info + cancel-in-progress: true + +permissions: + contents: write + pull-requests: write + +jobs: + update-image-info: + name: Update image info data + runs-on: super + steps: + + - name: Fix workspace permissions + run: | + sudo chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" || true + sudo chmod -R u+rwX "$GITHUB_WORKSPACE" || true + + - name: Checkout armbian.github.io + uses: actions/checkout@v6 + with: + repository: armbian/armbian.github.io + fetch-depth: 0 + path: armbian.github.io + + - name: Checkout build + uses: actions/checkout@v6 + with: + repository: armbian/build + fetch-depth: 0 + path: build + + - name: "Produce inventory JSON" + run: | + + cd build + ./compile.sh inventory-boards + + - name: Commit changes if any + shell: bash + run: | + + cd armbian.github.io + set -euo pipefail + git checkout data + mv ${{ github.workspace }}/build/output/info/image-info.json data/ + + git config --global user.name "github-actions" + git config --global user.email "github-actions@github.com" + git add data/image-info.json + + if ! git diff --cached --quiet; then + git commit -m "Update image-info.json from build repository" + git push + else + echo "No changes to commit." + fi + + - name: "Run Bigin update action" + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + event-type: "Bigin update" + diff --git a/README.md b/README.md index 15080ed9..73fa484d 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ It also produces [data exchange files](https://github.armbian.com/) used for aut |----------|--------|-------------| | [Generate Board Thumbnails](https://github.com/armbian/armbian.github.io/actions/workflows/assets-generate-board-thumbnails.yml) | GitHub Workflow Status | Generates thumbnails from `board-images/` and `board-vendor-logos/` and publishes to Armbian cache mirrors | | [Update Base-Files Metadata](https://github.com/armbian/armbian.github.io/actions/workflows/data-update-base-files-info.yml) | GitHub Workflow Status | Embeds build metadata into Armbian's `base-files` packages | +| [Update image-info JSON](https://github.com/armbian/armbian.github.io/actions/workflows/data-update-image-info.yml) | GitHub Workflow Status | Generate all elements of build framework `output/info/file-info.json`| | [Cache Debian & Ubuntu Keyrings](https://github.com/armbian/armbian.github.io/actions/workflows/generate-keyring-data.yaml) | GitHub Workflow Status | Improves reliability of build process | | [Weekly Release Summary](https://github.com/armbian/armbian.github.io/actions/workflows/reporting-release-summary.yml) | GitHub Workflow Status | Compiles a Markdown digest of merged pull requests across repos or org | | [Update Download Index](https://github.com/armbian/armbian.github.io/actions/workflows/data-update-download-index.yml) | GitHub Workflow Status | Regenerates image download indexes and torrent files |