diff --git a/.github/workflows/example-slinky.yml b/.github/workflows/example-slinky.yml index 49ee205..222527a 100644 --- a/.github/workflows/example-slinky.yml +++ b/.github/workflows/example-slinky.yml @@ -17,16 +17,6 @@ jobs: - name: Run Slinky link checker uses: ./ - with: - path: . - patterns: "**/*" - concurrency: "16" - timeout: "10" - json-out: results.json - md-out: results.md - fail-on-failures: "true" - comment-pr: "true" - step-summary: "true" - name: Upload results if: always() diff --git a/action.yml b/action.yml index a3a263e..b85b2b1 100644 --- a/action.yml +++ b/action.yml @@ -22,27 +22,27 @@ inputs: description: "HTTP timeout seconds" required: false default: "10" - json-out: + json_out: description: "Optional path to write JSON results" required: false default: "results.json" - md-out: + md_out: description: "Optional path to write Markdown report for PR comment" required: false default: "results.md" - repo-blob-base: + repo_blob_base: description: "Override GitHub blob base URL (https://github.com///blob/)" required: false default: "" - fail-on-failures: + fail_on_failures: description: "Fail the job if any links fail" required: false default: "true" - comment-pr: + comment_pr: description: "If running on a PR, post a comment with the report" required: false default: "true" - step-summary: + step_summary: description: "Append the report to the GitHub Step Summary" required: false default: "true" @@ -56,17 +56,17 @@ runs: INPUT_PATTERNS: ${{ inputs.patterns }} INPUT_CONCURRENCY: ${{ inputs.concurrency }} INPUT_TIMEOUT: ${{ inputs.timeout }} - INPUT_JSON_OUT: ${{ inputs["json-out"] }} - INPUT_MD_OUT: ${{ inputs["md-out"] }} - INPUT_REPO_BLOB_BASE: ${{ inputs["repo-blob-base"] }} - INPUT_FAIL_ON_FAILURES: ${{ inputs["fail-on-failures"] }} - INPUT_COMMENT_PR: ${{ inputs["comment-pr"] }} - INPUT_STEP_SUMMARY: ${{ inputs["step-summary"] }} + INPUT_JSON_OUT: ${{ inputs.json_out }} + INPUT_MD_OUT: ${{ inputs.md_out }} + INPUT_REPO_BLOB_BASE: ${{ inputs.repo_blob_base }} + INPUT_FAIL_ON_FAILURES: ${{ inputs.fail_on_failures }} + INPUT_COMMENT_PR: ${{ inputs.comment_pr }} + INPUT_STEP_SUMMARY: ${{ inputs.step_summary }} outputs: - json-path: + json_path: description: "Path to JSON results file" - md-path: + md_path: description: "Path to Markdown report file"