ci: dispatch armbian.github.io download-index regen after green build#21
Merged
Merged
Conversation
When the SDK build workflow finishes successfully, fire a
repository_dispatch at armbian/armbian.github.io so the download
index gets regenerated against the freshly published release. Same
peter-evans/repository-dispatch + ACCESS_TOKEN pattern armbian/build
already uses (data-sync-board-list.yml,
infrastructure-dispatch-to-fork.yml).
Implementation notes:
- workflow_run trigger watches the 'Build Armbian SDK' workflow by
name; only fires when conclusion == 'success'. Partial / red
matrix runs leave the release as pre-release, so the index would
otherwise regenerate against incomplete data.
- Soft-skip via 'if: env.DISPATCH_SECRET != \"\"' if ACCESS_TOKEN
isn't yet configured — avoids hard-red runs on a fresh repo.
- Fork guard via 'github.repository_owner == \"armbian\"' so user
forks of sdk don't accidentally fire dispatches at the canonical
armbian.github.io.
- workflow_dispatch always allowed for manual one-off retries.
- event-type matches the listener at line 5 of
armbian.github.io/.github/workflows/data-update-download-index.yml.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After
Build Armbian SDKfinishes, fire arepository_dispatchatarmbian/armbian.github.ioso the download index regenerates against the freshly promoted SDK release.Same shape
armbian/buildalready uses —infrastructure-dispatch-to-fork.ymlanddata-sync-board-list.yml—peter-evans/repository-dispatch@v4+ACCESS_TOKENorg PAT.Behaviour matrix
workflow_runafterBuild Armbian SDKarmbiansuccessarmbiansuccessarmbianif)if)workflow_dispatcharmbianWhy gate on
conclusion == 'success'The
Aggregatejob leaves the release as a pre-release if any matrix cell failed. Regenerating the index against an incomplete release would surface partial assets to end users. Better to no-op until the matrix is green.Event type
Data: Update download index— matches the listener at line 5 of the target workflow.Test plan
workflow_dispatchof this new workflow as a smoke test.data-update-download-indexruns in the target repo.