Skip to content

Conversation

spier
Copy link
Member

@spier spier commented Sep 15, 2025

Fixes #570. (or at least tries to ... again ;))

I am trying again to fix the GHA workflow that takes a screenshot of the mindmap that is rendered in our online book.
Previous failed tries were #571 and #775.

Found this here that can take screenshots on the CLI:
https://github.com/sindresorhus/pageres-cli

Could not find a GHA that wraps this but it was easy enough to express this in a workflow myself.

TODO:

  • once this PR is merged, remember to delete all the old branches of the closed PRs referenced above

@spier spier added Type - Maintenance / Cleanup Maintaining / cleaning the repo is the main focus of this issue / PR (Self-) Hosting Everything around artifact rendering and presentation. labels Sep 15, 2025
@spier
Copy link
Member Author

spier commented Sep 15, 2025

The screenshot generation works now.

However the "Commit Changes" step does not work, as multiple matrix builds are trying changing the state of the repository in parallel. The git-auto-commit-action GHA explicitly mentions this limitation.

One way to solve this would be to upload the screenshots as artefacts in the matrix build, then at the end have a single job that downloads all artefacts and commits them. See stefanzweifel/git-auto-commit-action#290 and https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations#using-an-output-to-define-two-matrices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Self-) Hosting Everything around artifact rendering and presentation. Type - Maintenance / Cleanup Maintaining / cleaning the repo is the main focus of this issue / PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix generate-mindmap GHA workflow
1 participant