github-action-markdown-link-check
github-action-markdown-link-check copied to clipboard
Feature request set base url option in github action
trafficstars
In my case, PREVIEW_URL changes on newly opened PR. It would be great to be able to pass the BASEURL from the github action into the github file like this.
on: [pull_request]
name: Check links for modified files
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
base-url: ${{ secret.PREVIEW_URL }}
This way, it could be used like this in markdown-links-config.json
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "{{BASEURL}}/"
}
]
}
I have stopped working on this action. Please try https://github.com/UmbrellaDocs/linkspector and https://github.com/UmbrellaDocs/action-linkspector instead. Linkspector supports base-url.