Skip to content

Commit

Permalink
Merge pull request #720 from Azure-Samples/anujparashar/upgrading-lin…
Browse files Browse the repository at this point in the history
…ting

Updating markdown linter to use latest "linkspector"
  • Loading branch information
promisinganuj authored Jul 1, 2024
2 parents 52cc6ea + 909cb04 commit 598ee8c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 39 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@ on:
push:
branches:
- main
- single-tech/databricks
pull_request:
branches:
- main
- single-tech/databricks

jobs:
markdown-link-check:
check-links:
name: runner / linkspector
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v2
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- uses: actions/checkout@v4
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.markdownlinkcheck.json'
file-extension: '.md'
reporter: github-pr-review
fail_on_error: true
config_file: '.linkspector.yml'
markdown-lint:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ on:
push:
branches:
- main
- single-tech/databricks
pull_request:
branches:
- main
- single-tech/databricks

jobs:
yml-lint:
Expand Down
28 changes: 0 additions & 28 deletions .markdownlinkcheck.json

This file was deleted.

16 changes: 16 additions & 0 deletions linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
files:
- README.md
- SECURITY.md
dirs:
- e2e_samples
- single_tech_samples
aliveStatusCodes:
- 200
- 201
- 204
ignorePatterns:
- pattern: "^https://data.melbourne.vic.gov.au/resource/"
- pattern: "^https://adb-[0-9]+.[0-9].azuredatabricks.net"
- pattern: "^https://stmdwpublic.blob.core.windows.net/"
useGitIgnore: true
modifiedFilesOnly: false

0 comments on commit 598ee8c

Please sign in to comment.