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 df1e66b commit 1c6d244
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,5 @@ runs:
-s ${{ inputs.stack }} \
--format json \
--file "$OUTPUT_FILE"
RESULT=$?
if [ $RESULT -ne 0 ]; then
echo "Atmos config not found"
exit 1
fi
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 1c6d244

Please sign in to comment.