Skip to content

Issue with file path input #285

@tooomm

Description

@tooomm

What I want to archive

  • Parse a file as input and dump the URLs into a md file
  • Check the URLs from the dumped md file as input for lychee

See my config:

      # (1) Extract URLs
      - name: Extract URLs
        uses: lycheeverse/lychee-action@v2
        with:
          args: --dump --exclude www.w3.org -- input.xml
          output: lychee/url_list.md
          jobSummary: false

      # (2) Print output
      - name: Print List of URLs
        run: cat ./lychee/url_list.md

      # (3) Check dumped URLs from file
      - name: Check URLs
        uses: lycheeverse/lychee-action@v2
        with:
          args: --no-progress --require-https -- './lychee/url_list.md'
          jobSummary: true

✅ The (1) first step succeeds and the file is dumped.
✅ The (2) second steps succeeds and the dumped output file is found + printed.
❌ The (3) third step is failing and the dumped output file can not be found and used as input any more.

Error: Cannot parse inputs from arguments

Caused by:
    Invalid file path: ./lychee/url_list.md

Any idea?

I'm using the same file path in (2) and (3).
I also tried ./lychee/url_list.md without wrapping in ', which leads to the same error.

Originally posted by @tooomm in #214

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions