Fixing small errors on data-backup.qmd #127
Workflow file for this run
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: MarkdownLint for QMD files | |
on: | |
pull_request: | |
paths: | |
- 'topics/**/*.qmd' | |
- 'pathway/**/*.qmd' | |
jobs: | |
markdownlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # Specify the Node.js version you prefer | |
- name: Install markdownlint-cli | |
run: npm install -g markdownlint-cli | |
- name: Run markdownlint with fix on .qmd files | |
run: markdownlint '**/{topics,pathway}/**/*.qmd' --fix | |
- name: Commit changes if any fixes were made | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email 'github-actions@github.com' | |
git add . | |
git commit -m "Apply markdownlint fixes" || echo "No changes to commit" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |