Refactor input and output parameter names in action.yml for consistency

This commit is contained in:
Luke Hagar
2025-09-11 16:28:22 +00:00
parent eae00e0da1
commit b0c7ffe677
2 changed files with 14 additions and 24 deletions

View File

@@ -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()

View File

@@ -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/<owner>/<repo>/blob/<sha>)"
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"