(test) Add Markup AI workflow #1
This file contains hidden or 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
| permissions: | |
| contents: read | |
| pull-requests: write | |
| statuses: write | |
| name: PR Quality Check | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.mdx' | |
| - '**.md' | |
| - '.vale/**' | |
| - '.vale.ini' | |
| - '!**/changelog/**' | |
| jobs: | |
| quality-gate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Quality Analysis | |
| id: analysis | |
| uses: markupai/content-guardian-action@v1 | |
| with: | |
| markup_ai_api_key: ${{ secrets.MARKUP_AI_API_KEY }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| dialect: "american_english" | |
| style-guide: "microsoft" | |
| # tone is optional | |
| tone: "technical" | |
| - name: Check Quality Score | |
| run: | | |
| results='${{ steps.analysis.outputs.results }}' | |
| # Add your quality threshold logic here |