Skip to content

Commit

Permalink
make whitespace handling more robust (prismatic-io#8)
Browse files Browse the repository at this point in the history
* use eval to run shell command

* remove debug output
  • Loading branch information
BrandonALittle authored Jul 15, 2024
1 parent e5dcfd0 commit da0ef0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ runs:
shell: bash
run: |
source $GITHUB_WORKSPACE/logger.sh
if ! npm list -g @prismatic-io/prism &> /dev/null; then
log $INFO "\U1F527 Prism CLI is not installed. Installing..."
npm install --global @prismatic-io/prism
Expand Down Expand Up @@ -186,7 +187,7 @@ runs:
fi
log $INFO "Running command: $COMMAND"
OUTPUT=$($COMMAND 2>&1)
OUTPUT=$(eval "$COMMAND" 2>&1)
if echo "$OUTPUT" | grep -q "Package signatures match, skipping publish"; then
echo "PUBLISH_SKIPPED=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit da0ef0c

Please sign in to comment.