Running markdown-notes-tree 🌳 #51
This file contains 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: markdown-notes-tree GitHub Actions | |
run-name: Running markdown-notes-tree 🌳 | |
on: [push] | |
jobs: | |
build-tree: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Ensure npx uses a cache | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
cache-dependency-path: '**/.github/workflows/*.yml' | |
- name: Configure Git for commits | |
run: |- | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
- name: markdown-notes-tree | |
run: npx markdown-notes-tree -- ignore | |
- name: Commit and push if it changed | |
run: |- | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "GitHub: ${timestamp}" || exit 0 | |
git push |