Closed github-actions[bot] closed 3 years ago
This is better, but there's still something slightly wrong with lychee's setup. Looks like it can't find the file /tmp/lychee/out.md
that it wants to write output too. It does look like it's creating the temp directory mkdir -p /tmp/lychee
, so maybe it also needs to create the file as well?
I'm surprised the github action isn't handling this well automatically. We might have to make a new test repository, with the cron job on a more frequent schedule to debug this.
Github actions log:
Run lycheeverse/lychee-action@v1.0.8
/usr/bin/docker run --name f8842090fc3ca8a4b94cbaa02c6671a78c18ca_80a069 --label f88420 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/napari.github.io/napari.github.io":"/github/workspace" f88420:90fc3ca8a4b94cbaa02c6671a78c18ca --verbose --no-progress **/*.md **/*.html --base https://napari.org --exclude-all-private --require-https lychee links.md --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0"
+ LYCHEE_OUT=lychee/out.md
+ LYCHEE_TMP=/tmp/lychee/out.md
+ GITHUB_WORKFLOW_URL='https://github.com/napari/napari.github.io/actions/runs/1378357066?check_suite_focus=true'
++ dirname /tmp/lychee/out.md
+ mkdir -p /tmp/lychee
+ lychee --output /tmp/lychee/out.md --verbose --no-progress '**/*.md' '**/*.html' --base https://napari.org --exclude-all-private --require-https lychee links.md --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0'
Error: Failed to read file: `lychee`, reason: No such file or directory (os error 2)
+ exit_code=1
+ '[' 1 -ne 0 ']'
++ dirname lychee/out.md
+ mkdir -p lychee
+ echo 'Errors were reported while checking the availability of links.'
+ echo
+ echo '```'
+ echo
+ cat /tmp/lychee/out.md
cat: /tmp/lychee/out.md: No such file or directory
+ echo
+ echo '```'
+ echo
+ echo '[Full Github Actions output](https://github.com/napari/napari.github.io/actions/runs/1378357066?check_suite_focus=true)'
+ cat /tmp/lychee/out.md
cat: /tmp/lychee/out.md: No such file or directory
+ echo
+ echo ::set-output name=exit_code::1
Testing with lycheeverse/lychee-action@v1.0.9
here: https://github.com/GenevieveBuckley/broken-link-checker
Cron job should run once every hour, check the issue tracker on that repository to see if it's working correctly.
Errors were reported while checking the availability of links.
Full Github Actions output