peter-evans / link-checker

A GitHub action for link checking repository Markdown and HTML files
MIT License
49 stars 11 forks source link

Exclude HTTPS URLs When Checking #38

Open praneesha opened 3 years ago

praneesha commented 3 years ago

@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 commented 3 years ago

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

peter-evans commented 3 years ago

@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.

praneesha commented 3 years ago

@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?