link-checker icon indicating copy to clipboard operation
link-checker copied to clipboard

Exclude HTTPS URLs When Checking

Open praneesha opened this issue 4 years ago • 3 comments

@peter-evans - I have fixed all the broken links and now I get only the error below in my report.

Screenshot 2021-01-12 at 17 41 33

How can I get rid of this to get an empty report? My config is as follows:

on: [pull_request]
name: Link Checker Example Command
jobs:
  linkChecker:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Build the site
        uses: shafreenAnfar/jekyll-build-action@v5
      - name: Link Checker
        id: lc
        uses: peter-evans/link-checker@v1
        with:
          args: -r learn swan-lake 1.1 1.0 -x 0.990 https?:// -d ./_site 
      - name: Archive production artifacts
        uses: actions/upload-artifact@v2
        with:
          name: Link Checker Report
          path:  ./link-checker/out.md
      - name: Fail if there were link errors
        run: exit ${{ steps.lc.outputs.exit_code }}

praneesha avatar Jan 12 '21 12:01 praneesha

@peter-evans - Any answer on the above, please?

praneesha avatar Jan 20 '21 11:01 praneesha

@praneesha It looks like there is something wrong with your args. The error message is complaining about the https?:// part.

By the way, Liche was recently deprecated and as a result I've also decided to deprecate this action in favour of lychee-action, which is a fork of this project based on lychee. Please consider using that action instead.

peter-evans avatar Jan 21 '21 04:01 peter-evans

@peter-evans - Sorry, The Lychee tool doesn't work for me (as reported in https://github.com/lycheeverse/lychee/issues/106) and I am almost done with configuring your tool.

Thereby, is there a way to skip HTTPS URLs without giving it in the args as I have done above?

praneesha avatar Jan 21 '21 16:01 praneesha