Maxscale 22.08, 23.02, 23.08 and 24.02 release notes. #125
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
| name: Check Links in PR | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changes | |
| uses: tj-actions/changed-files@v45 | |
| with: | |
| files: | | |
| **.md | |
| **.html | |
| - name: Scan for broken links | |
| if: steps.changes.outputs.any_changed == 'true' | |
| uses: lycheeverse/[email protected] | |
| with: | |
| # --no-progress: Keeps logs clean | |
| # --exclude: Ignores specific domains or paths (regex) | |
| # The variable at the end passes the changed files list | |
| args: >- | |
| --no-progress | |
| --exclude dev\.mysql\.com | |
| --exclude docs\.oracle\.com | |
| ${{ steps.changes.outputs.all_changed_files }} | |
| fail: true | |
| - name: 📖 Help & Documentation | |
| if: failure() | |
| run: | | |
| echo "### ❌ Link Check Failed?" >> $GITHUB_STEP_SUMMARY | |
| echo "Don't panic! We have a guide on how to fix this quickly." >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "👉 [**Read the SOP: How to Fix Link Errors**](https://mariadbcorp.atlassian.net/wiki/spaces/DOCS/pages/3284140040/Pull+Requests#Method-1%3A-The-%22Quick-Fix%22-(Recommended))" >> $GITHUB_STEP_SUMMARY |