| description |
Runs Markdown quality checks using Super Linter and creates issues for violations |
| true |
| workflow_dispatch |
schedule |
|
|
|
| permissions |
| contents |
actions |
issues |
pull-requests |
read |
read |
read |
read |
|
| safe-outputs |
| create-issue |
noop |
| expires |
title-prefix |
labels |
2d |
[linter] |
|
|
|
|
| engine |
copilot |
| name |
Markdown Linter |
| timeout-minutes |
15 |
| imports |
|
| jobs |
| super_linter |
| runs-on |
permissions |
steps |
ubuntu-latest |
| contents |
packages |
statuses |
read |
read |
write |
|
| name |
uses |
with |
Checkout repository |
actions/checkout@v6.0.2 |
| fetch-depth |
persist-credentials |
0 |
false |
|
|
| name |
uses |
id |
env |
Super-linter |
super-linter/super-linter@v8.5.0 |
super-linter |
| GITHUB_TOKEN |
CREATE_LOG_FILE |
LOG_FILE |
DEFAULT_BRANCH |
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY |
VALIDATE_MARKDOWN |
VALIDATE_ALL_CODEBASE |
${{ secrets.GITHUB_TOKEN }} |
true |
super-linter.log |
main |
true |
true |
false |
|
|
| name |
id |
run |
Check for linting issues |
check-results |
if [ -f "super-linter.log" ] && [ -s "super-linter.log" ]; then
if grep -qE "ERROR|WARN|FAIL" super-linter.log; then
echo "needs-linting=true" >> "$GITHUB_OUTPUT"
else
echo "needs-linting=false" >> "$GITHUB_OUTPUT"
fi
else
echo "needs-linting=false" >> "$GITHUB_OUTPUT"
fi
|
|
| name |
if |
uses |
with |
Upload super-linter log |
always() |
actions/upload-artifact@v7 |
| name |
path |
retention-days |
super-linter-log |
super-linter.log |
7 |
|
|
|
|
|
| steps |
| name |
uses |
with |
Download super-linter log |
actions/download-artifact@v8 |
| name |
path |
super-linter-log |
/tmp/gh-aw/ |
|
|
|
| tools |
| cache-memory |
edit |
bash |
true |
|
|
|
You are an expert documentation quality analyst. Your task is to analyze the Super Linter Markdown output and create a comprehensive issue report for the repository maintainers.
- Repository: ${{ github.repository }}
- Triggered by: @${{ github.actor }}
- Run ID: ${{ github.run_id }}
- Read the linter output from
/tmp/gh-aw/super-linter.log using the bash tool
- Analyze the findings:
- Categorize errors by severity (critical, high, medium, low)
- Identify patterns in the errors
- Determine which errors are most important to fix first
- Note: This workflow only validates Markdown files
- Create a detailed issue with the following structure:
Use format: "Markdown Quality Report - [Date] - [X] issues found"
## 🔍 Markdown Linter Summary
**Date**: [Current date]
**Total Issues Found**: [Number]
**Run ID**: ${{ github.run_id }}
## 📊 Breakdown by Severity
- **Critical**: [Count and brief description]
- **High**: [Count and brief description]
- **Medium**: [Count and brief description]
- **Low**: [Count and brief description]
## 📁 Issues by Category
### [Category/Rule Name]
- **File**: `path/to/file`
- Line [X]: [Error description]
- Suggested fix: [How to resolve]
[Repeat for other categories]
## 🎯 Priority Recommendations
1. [Most critical issue to address first]
2. [Second priority]
3. [Third priority]
## 📋 Full Linter Output
<details>
<summary>Click to expand complete linter log</summary>
[Include the full linter output here]
</details>
## 🔗 References
- [Link to workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
- [Super Linter Documentation](https://github.com/super-linter/super-linter)
- Be concise but thorough: Focus on actionable insights
- Prioritize issues: Not all linting errors are equal
- Provide context: Explain why each type of error matters for documentation quality
- Suggest fixes: Give practical recommendations
- Use proper formatting: Make the issue easy to read and navigate
- If no errors found: Call
noop celebrating clean markdown
Important: Always call exactly one safe-output tool before finishing (create_issue or noop).
{"noop": {"message": "No action needed: [brief explanation of what was analyzed and why]"}}