|
| 1 | +name: Validate Markdown |
| 2 | + |
| 3 | +on: |
| 4 | + # Trigger the workflow on pull request |
| 5 | + pull_request_target: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + paths: |
| 9 | + - '**.md' |
| 10 | + - '**.ipynb' |
| 11 | + |
| 12 | +permissions: |
| 13 | + contents: read |
| 14 | + pull-requests: write |
| 15 | + |
| 16 | +jobs: |
| 17 | + check-broken-paths: |
| 18 | + name: Check Broken Relative Paths |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - name: Checkout Repo |
| 22 | + uses: actions/checkout@v3 |
| 23 | + with: |
| 24 | + ref: ${{ github.event.pull_request.head.sha }} |
| 25 | + - name: Check broken Paths |
| 26 | + id: check-broken-paths |
| 27 | + uses: john0isaac/[email protected] |
| 28 | + with: |
| 29 | + command: check_broken_paths |
| 30 | + directory: ./ |
| 31 | + guide-url: 'https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/CONTRIBUTING.md' |
| 32 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + check-urls-locale: |
| 34 | + if: ${{ always() }} |
| 35 | + needs: check-broken-paths |
| 36 | + name: Check URLs Don't Have Locale |
| 37 | + runs-on: ubuntu-latest |
| 38 | + steps: |
| 39 | + - name: Checkout Repo |
| 40 | + uses: actions/checkout@v3 |
| 41 | + with: |
| 42 | + ref: ${{ github.event.pull_request.head.sha }} |
| 43 | + - name: Run Check URLs Country Locale |
| 44 | + id: check-urls-locale |
| 45 | + uses: john0isaac/[email protected] |
| 46 | + with: |
| 47 | + command: check_urls_locale |
| 48 | + directory: ./ |
| 49 | + guide-url: 'https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/CONTRIBUTING.md' |
| 50 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 51 | + check-broken-urls: |
| 52 | + if: ${{ always() }} |
| 53 | + name: Check Broken URLs |
| 54 | + runs-on: ubuntu-latest |
| 55 | + steps: |
| 56 | + - name: Checkout Repo |
| 57 | + uses: actions/checkout@v3 |
| 58 | + with: |
| 59 | + ref: ${{ github.event.pull_request.head.sha }} |
| 60 | + - name: Run Check Broken URLs |
| 61 | + id: check-broken-urls |
| 62 | + uses: john0isaac/[email protected] |
| 63 | + with: |
| 64 | + command: check_broken_urls |
| 65 | + directory: ./ |
| 66 | + guide-url: 'https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/CONTRIBUTING.md' |
| 67 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments