Skip to content

Fix for on.push

Fix for on.push #2

Workflow file for this run

# https://github.com/lycheeverse/lychee-action
# https://github.com/lycheeverse/lychee
name: Check Links
on:
push:
schedule:
# Run monthly
# GitHub actions uses UTC for time zone
# crontab format: minute hour day-of-month month day-of-week
- cron: "18 4 4 * *"
workflow_dispatch:
inputs:
message:
description: Message to display in job summary
required: false
type: string
additional-args:
description: Additional command-line arguments (see https://github.com/lycheeverse/lychee#commandline-parameters)
required: false
type: string
workflow_call:
inputs:
message:
description: Message to display in job summary
required: false
type: string
additional-args:
description: Additional command-line arguments (see https://github.com/lycheeverse/lychee#commandline-parameters)
required: false
type: string
jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
# args: --base . --verbose --no-progress -a '200,403,429,500' './**/*.md'
# args: --config ./.github/workflows/lychee.toml './**/*.md'
args: --verbose --no-progress -a '200,403,429,500' --base . ${{inputs.additional-args }} ./**/*.md
fail: true
- name: Print the job summary
if: ${{ inputs.message }}
run: |
echo ${{ inputs.message }} >$GITHUB_STEP_SUMMARY