Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
68509a7
Use pageres-cli for taking the screenshot
spier Sep 15, 2025
ff55082
Break out the commit into a new job, that should run after the matrix…
spier Sep 15, 2025
fd041de
Try 'git pull' to prevent race conditions in the matrix build
spier Sep 15, 2025
839f1ac
Overwrite all mindmap PNGs manually
spier Sep 15, 2025
dacb3a4
Fix workflow
spier Sep 15, 2025
0eb7ec9
Sticking to the original dimension of the PNG
spier Sep 15, 2025
c75b309
Run all jobs of this workflow sequentially, so that the commits made …
spier Sep 25, 2025
a7bf8aa
Change commit message
spier Sep 25, 2025
5c9adf7
Trying a different commit action
spier Sep 26, 2025
6e3e9d8
Adapt the checkout configuration, to match the expectations of EndBug…
spier Sep 26, 2025
930bbc9
Re-creating markmap and screenshot for ./gl
spier Sep 26, 2025
be2097d
Re-creating markmap and screenshot for ./es
spier Sep 26, 2025
ac3ed9b
Test concurrency config / max-parallel: 1
spier Sep 26, 2025
f4ad3fb
Try that again
spier Sep 26, 2025
4fe1f52
Re-creating markmap and screenshot for .
spier Sep 26, 2025
36ca4f6
Re-creating markmap and screenshot for ./pt-br
spier Sep 26, 2025
97ece10
Using loop in script, rather than parallel job executions
spier Sep 27, 2025
4185a15
Push old images, to confirm that the action will recreate them
spier Sep 27, 2025
fbc406f
Re-creating markmap and screenshot
spier Sep 27, 2025
9109ae6
Run optipng in silent mode. Test for parent folder as well.
spier Sep 27, 2025
2a65f2e
Testing regeneration for parent folder as well
spier Sep 27, 2025
095d24c
Re-creating markmap and screenshot
spier Sep 27, 2025
699f738
Remove unnecessary config
spier Sep 27, 2025
739008f
Update npm packages
spier Sep 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions .github/workflows/generate-mindmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write

strategy:
matrix:
folder: [".", "./gl", "./pt-br", "./es"]

steps:
- uses: actions/checkout@v5
- name: Use Node.js
Expand All @@ -40,19 +36,28 @@ jobs:
cache-dependency-path: pattern-categorization/package-lock.json
- name: Install Node.js dependencies
run: npm install
- name: Run Markmap
run: npx markmap --no-toolbar ${{ matrix.folder }}/innersource-program-mind-map.md -o ${{ matrix.folder }}/innersource-program-mind-map.html
- name: Screenshot Markmap Website
id: screenshot-generator
uses: swinton/screenshot-website@v1.x
with:
source: pattern-categorization/${{ matrix.folder }}/innersource-program-mind-map.html #strange syntax here. seems to not respect the working-directory default either
destination: innersource-program-mind-map.png
full-page: false
- name: Copy Screenshot
run: cp ${{ steps.screenshot-generator.outputs.path }} ${{ matrix.folder }}
- name: Reduce Screenshot Size (PNG)
run: npx optipng ${{ matrix.folder }}/innersource-program-mind-map.png
- name: Generate mindmap and take screenshot
run: |
# Disable AppArmor for unprivileged user namespaces (required for 'pageres')
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

# Loops over the top-level folder and all immediate sub-folders, except for "node_modules"
for dir in . */; do
# Skip node_modules
[ "$(basename "$dir")" = "node_modules" ] && continue

echo "Creating mindmap PNG for: $dir"
(
# Create markmap HTML
npx markmap --no-open --no-toolbar $dir/innersource-program-mind-map.md -o $dir/innersource-program-mind-map.html

# Take the screenshot
npx pageres $dir/innersource-program-mind-map.html --overwrite --filename=$dir/innersource-program-mind-map 2560x1600

# Reduce Screenshot Size (PNG)
npx optipng -silent $dir/innersource-program-mind-map.png
)
done
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v6
with:
Expand Down
23 changes: 17 additions & 6 deletions pattern-categorization/es/innersource-program-mind-map.html

Large diffs are not rendered by default.

Binary file modified pattern-categorization/es/innersource-program-mind-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 17 additions & 6 deletions pattern-categorization/gl/innersource-program-mind-map.html

Large diffs are not rendered by default.

Binary file modified pattern-categorization/gl/innersource-program-mind-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pattern-categorization/innersource-program-mind-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading