Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc75f83

Browse files
authored
extend preview action with auto-load-pod input (#11)
1 parent 8754795 commit cc75f83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

preview/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
description: 'Command(s) used to create a preview of the PR (can use $AWS_ENDPOINT_URL)'
1212
required: false
1313
default: ''
14+
auto-load-pod:
15+
description: 'The pod to load on startup of localstack, the env var AUTO_LOAD_POD'
16+
required: false
17+
default: ''
1418

1519
runs:
1620
using: composite
@@ -34,7 +38,7 @@ runs:
3438
# TODO: make preview name configurable!
3539
previewName=preview-$prId
3640
37-
response=$(curl -X POST -d '{}' \
41+
response=$(curl -X POST -d '{"auto_load_pod": "${{ inputs.auto-load-pod }}"}' \
3842
-H 'ls-api-key: ${{ inputs.localstack-api-key }}' \
3943
-H 'authorization: token ${{ inputs.localstack-api-key }}' \
4044
-H 'content-type: application/json' \

0 commit comments

Comments
 (0)