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 <igor@armbian.com>
This commit is contained in:
Igor Pecovnik
2025-12-29 16:40:53 +01:00
committed by Igor
parent 287779b5f4
commit b948320484
2 changed files with 73 additions and 0 deletions

View File

@@ -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"

View File

@@ -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) | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/assets-generate-board-thumbnails.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/assets-generate-board-thumbnails.yml?label=&style=for-the-badge&branch=main&logoColor=white"></a> | 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) | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/data-update-base-files-info.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/data-update-base-files-info.yml?label=&style=for-the-badge&branch=main&logoColor=white"></a> | 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) | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/data-update-image-info.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/data-update-image-info.yml?label=&style=for-the-badge&branch=main&logoColor=white"></a> | 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) | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/generate-keyring-data.yaml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/generate-keyring-data.yaml?label=&style=for-the-badge&branch=main&logoColor=white"></a> | Improves reliability of build process |
| [Weekly Release Summary](https://github.com/armbian/armbian.github.io/actions/workflows/reporting-release-summary.yml) | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/reporting-release-summary.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/reporting-release-summary.yml?label=&style=for-the-badge&branch=main&logoColor=white"></a> | 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) | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/data-update-download-index.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/data-update-download-index.yml?label=&style=for-the-badge&branch=main&logoColor=white"></a> | Regenerates image download indexes and torrent files |