Skip to content

Commit

Permalink
Added test for non existing stack
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Dec 21, 2023
1 parent bd37ddc commit 68ee833
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ runs:
-s ${{ inputs.stack }} \
--format json \
--file "$OUTPUT_FILE"
value=$(jq -rc --arg key ${{ inputs.settings-path }} '. | getpath($key | split("."))' "$OUTPUT_FILE")
cat $OUTPUT_FILE
value=$(jq -rc --arg key ${{ inputs.settings-path }} '. | getpath($key | split(".")) | if . == null then "" else . end' "$OUTPUT_FILE")
echo "value=$value" >> $GITHUB_OUTPUT

0 comments on commit 68ee833

Please sign in to comment.