-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
2,778 additions
and
1,946 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Linting Quarto Markdown files | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
lint-qmd-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Installing GitHub CLI | ||
run: | | ||
sudo apt install -y gh jq nodejs npm | ||
- name: Installing Markdown Linter | ||
run: | | ||
sudo npm install -g markdownlint-cli | ||
- name: Markdown linting job has been triggered | ||
run: | | ||
echo "The job was automatically triggered by a ${{ github.event_name }} event." | ||
- name: Running markdown linter | ||
run: | | ||
markdownlint --config .github/workflows/markdown_linter/.mdlintconfig.yml --ignore-path .github/workflows/markdown_linter/.mdlintignore ./ | ||
ret=$? | ||
if [ $ret -eq 1 ]; then | ||
echo "Linting failed. Please correct any errors and run the job again." | ||
exit 1 | ||
fi |
Oops, something went wrong.