Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request set base url option in github action #159

Open
kouliavtsev opened this issue Nov 2, 2022 · 1 comment
Open

Feature request set base url option in github action #159

kouliavtsev opened this issue Nov 2, 2022 · 1 comment

Comments

@kouliavtsev
Copy link

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}}/"
    }
  ]
}
@gaurav-nelson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants