Generate Mindmap #417
Workflow file for this run
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
| 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" | |
| workflow_dispatch: | |
| 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-open --no-toolbar innersource-program-mind-map.md -o innersource-program-mind-map.html | |
| - name: Screenshot Markmap Website | |
| run: pageres innersource-program-mind-map.html --overwrite --filename=innersource-program-mind-map | |
| - 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 |