You've already forked armbian.github.io
mirror of
https://github.com/armbian/armbian.github.io.git
synced 2026-01-06 11:42:20 -08:00
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:
72
.github/workflows/data-update-image-info.yml
vendored
Normal file
72
.github/workflows/data-update-image-info.yml
vendored
Normal 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"
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user