Skip to content

Commit

Permalink
Merge pull request #3 from tjtharrison/testing_inputs
Browse files Browse the repository at this point in the history
Set type for inputs
  • Loading branch information
tjtharrison authored Feb 7, 2023
2 parents ce77ff1 + 26ecaa3 commit c51e6b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ Github Action to generate github-actions docs for a composite action.

<!-- BEGIN_ACTION_DOCS -->

# github-actions-docs

Generate GitHub action docs for action

# inputs

| Title | Required | Type | Description |
|-----|-----|-----|-----|
| ACTION_FILE_NAME | True | string |The name of the file to be processed |
| OUTPUT_FILE_NAME | True | string |The file that the output report will be written to |
| OUTPUT_MODE | True | string |The output mode, [update/overwrite]. Update will be inserted after a line containing <!-- INSERT_ACTION_DOCS -->, overwrite will overwrite the whole file |
<!-- END_ACTION_DOCS -->

# Local development
Expand Down
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ inputs:
ACTION_FILE_NAME:
description: "The name of the file to be processed"
required: true
type: string
default: "action.yaml"
OUTPUT_FILE_NAME:
description: "The file that the output report will be written to"
required: true
type: string
default: "README.md"
OUTPUT_MODE:
description: "The output mode, [update/overwrite]. Update will be inserted after a line containing <!-- INSERT_ACTION_DOCS -->, overwrite will overwrite the whole file"
required: true
type: string
default: "update"
runs:
using: "composite"
Expand Down

0 comments on commit c51e6b5

Please sign in to comment.