Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 11 additions & 4 deletions .github/workflows/generate-mindmap.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Generate Mindmap

on:
workflow_dispatch:
push:
branches:
- "main"
Expand All @@ -9,6 +10,7 @@ on:
- ".github/workflows/generate-mindmap.yml"
- "pattern-categorization/innersource-program-mind-map.md"
- "pattern-categorization/package.json"
- "pattern-categorization/gl/*"

defaults:
run:
Expand All @@ -17,6 +19,11 @@ defaults:
jobs:
generate-mindmap:
runs-on: ubuntu-latest

strategy:
matrix:
folder: [".", "./gl"]

steps:
- uses: actions/checkout@v3
- name: Use Node.js
Expand All @@ -28,18 +35,18 @@ jobs:
- name: Install Node.js dependencies
run: npm install
- name: Run Markmap
run: npx markmap --no-toolbar innersource-program-mind-map.md -o innersource-program-mind-map.html
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/[email protected]
with:
source: pattern-categorization/innersource-program-mind-map.html
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 }} .
run: cp ${{ steps.screenshot-generator.outputs.path }} ${{ matrix.folder }}
- name: Reduce Screenshot Size (PNG)
run: npx optipng innersource-program-mind-map.png
run: npx optipng ${{ matrix.folder }}/innersource-program-mind-map.png
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
8 changes: 4 additions & 4 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.
8 changes: 4 additions & 4 deletions pattern-categorization/innersource-program-mind-map.html

Large diffs are not rendered by default.

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