Closed praneesha closed 4 years ago
Hi @praneesha
I think this might work:
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r learn swan-lake 1.1 1.0 -x 0.990 -d ${{ github.workspace }}
@peter-evans - Thanks for the help! Still the issue prevails now with the Stat
URL being appended with an unnecessary /home/runner/work/ballerina-dev-website/
part for all the links as shown below.
The logs of the GitHub Action also gives this as the working repository incorrectly.
Closing since I was able to get this resolved.
Hi @peter-evans,
I ran into a similar issue and tried your proposed solution (using -d ${{ github.workspace }}
), but was still not working. I tried this instead:
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r -d /github/workspace
I think when the docker run is started, it is doing something like -v "${{ github.workspace }}":"/github/workspace"
, so the repo files end up in /github/workspace
inside the docker image.
@peter-evans - I have configured the Link Checker as follows.
However, the links that already available also get listed as
no such file or directory
as shown below.How do I define the root directory
-d
correctly for absolute paths in the Liche arguments?