typos/action.yml
WaterLemons2k 6855a78893 feat(ci): Use composite to run action
Using composite instead of docker to avoid building image,
it can make the action faster.

If the `typos` command doesn't exist, download and extract it.
2023-03-14 23:04:09 +08:00

48 lines
1.2 KiB
YAML

name: "typos-action"
author: "Vanessa Sochat"
description: "Run typos to check spelling in GitHub actions"
inputs:
files:
description: "Files or patterns to check"
required: false
extend_identifiers:
description: "Comma separated list of extend identifiers, like someone's name"
required: false
extend_words:
description: "Comma separated list of extend words."
required: false
isolated:
description: "Ignore implicit configuration files"
required: false
default: false
write_changes:
description: "Write changes to the repository"
required: false
default: false
config:
description: "Use a custom config file."
required: false
runs:
using: 'composite'
steps:
- id: typos
run: $GITHUB_ACTION_PATH/action/entrypoint.sh
shell: bash
env:
INPUT_FILES: ${{ inputs.files }}
INPUT_EXTEND_IDENTIFIERS: ${{ inputs.extend_identifiers }}
INPUT_EXTEND_WORDS: ${{ inputs.extend_words }}
INPUT_ISOLATED: ${{ inputs.isolated }}
INPUT_WRITE_CHANGES: ${{ inputs.write_changes }}
INPUT_CONFIG: ${{ inputs.config }}
branding:
icon: "link"
color: "blue"