Skip to content

Commit

Permalink
Pin md link checker's version (paritytech#7697)
Browse files Browse the repository at this point in the history
* CI: pin md link checker's version to the previous release

* CI: add a whitelist for allowed GH actions pins

* CI: try master tip [skip ci]

* CI: return to a previous markdown-link-check dependency version [skip ci]

* CI: substitute %20 for a literal space [skip ci]

* CI: substitute %20 for a literal space
  • Loading branch information
TriplEight authored and darkfriend77 committed Jan 11, 2021
1 parent 046038b commit 8f407ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/allowed-actions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This is a whitelist of GitHub Actions that are approved for use in this project.
// If a new or existing workflow file is updated to use an action or action version
// not listed here, CI will fail.

module.exports = [
'gaurav-nelson/github-action-markdown-link-check@e3c371c731b2f494f856dc5de7f61cea4d519907', // gaurav-nelson/github-action-markdown-link-check@v1.0.8
]
2 changes: 1 addition & 1 deletion .github/workflows/md-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- uses: gaurav-nelson/github-action-markdown-link-check@e3c371c731b2f494f856dc5de7f61cea4d519907
with:
use-quiet-mode: 'yes'
config-file: '.github/workflows/mlc_config.json'
6 changes: 6 additions & 0 deletions .github/workflows/mlc_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
{
"pattern": "^https://crates.io"
}
],
"replacementPatterns": [
{
"pattern": "%20",
"replacement": " "
}
]
}

0 comments on commit 8f407ca

Please sign in to comment.