Improve schema #131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Scan Virus" | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
types: | |
- "edited" | |
- "opened" | |
- "reopened" | |
- "synchronize" | |
workflow_dispatch: | |
inputs: | |
git_integrate: | |
type: "choice" | |
description: "{Boolean} Whether to integrate with Git to perform scan by the commits." | |
required: false | |
default: "False" | |
options: | |
- "False" | |
- "True" | |
git_limit: | |
type: "string" | |
description: "{UInt} Limit on how many Git commits will scan." | |
required: false | |
default: "0" | |
git_reverse: | |
type: "choice" | |
description: "{Boolean} Whether to reverse the scan order of the Git commits." | |
required: false | |
default: "False" | |
options: | |
- "False" | |
- "True" | |
jobs: | |
main: | |
name: "Main" | |
uses: "hugoalh/hugoalh/.github/workflows/reusable-scan-virus.yml@main" | |
with: | |
git_integrate: "${{github.event.inputs.git_integrate || 'False'}}" | |
git_limit: "${{github.event.inputs.git_limit || '0'}}" | |
git_reverse: "${{github.event.inputs.git_reverse || 'False'}}" |