Skip to content

Running markdown-notes-tree 🌳 #51

Running markdown-notes-tree 🌳

Running markdown-notes-tree 🌳 #51

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