-
Notifications
You must be signed in to change notification settings - Fork 183
46 lines (43 loc) · 1.38 KB
/
generate-mindmap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Generate Mindmap
on:
push:
branches:
- "main"
pull_request:
paths:
- ".github/workflows/generate-mindmap.yml"
- "pattern-categorization/innersource-program-mind-map.md"
- "pattern-categorization/package.json"
defaults:
run:
working-directory: pattern-categorization
jobs:
generate-mindmap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: pattern-categorization/package-lock.json
- 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
- name: Screenshot Markmap Website
id: screenshot-generator
uses: swinton/[email protected]
with:
source: pattern-categorization/innersource-program-mind-map.html
destination: innersource-program-mind-map.png
full-page: false
- name: Copy Screenshot
run: cp ${{ steps.screenshot-generator.outputs.path }} .
- name: Reduce Screenshot Size (PNG)
run: npx optipng innersource-program-mind-map.png
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Re-creating markmap and screenshot