Skip to content

Commit 189f9c5

Browse files
committed
Parameterize atmos docs generate target
1 parent 4568252 commit 189f9c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ inputs:
4141
target:
4242
description: "Configuration name"
4343
required: true
44+
default: 'readme'
4445

4546
validate_readme:
4647
required: false
@@ -224,7 +225,7 @@ runs:
224225
env:
225226
GITHUB_TOKEN: "${{ inputs.token }}"
226227
run: |
227-
output_file=$(atmos docs generate readme 2>&1 | sed -n -e "s/^.*output=//p")
228+
output_file=$(atmos docs generate ${{ inputs.target }} 2>&1 | sed -n -e "s/^.*output=//p")
228229
# Get relative path from absolute
229230
output_file=$(realpath -s --relative-to="$PWD" "$output_file")
230231
# Ignore changes if they are only whitespace

0 commit comments

Comments
 (0)