Open kouliavtsev opened 2 years ago
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.
PREVIEW_URL
BASEURL
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
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.
base-url
In my case,
PREVIEW_URL
changes on newly opened PR. It would be great to be able to pass theBASEURL
from the github action into the github file like this.This way, it could be used like this in
markdown-links-config.json