Skip to content

Commit

Permalink
fix: entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
StevePorter92 committed Dec 22, 2021
1 parent 0b1a588 commit ae0a300
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/bin/sh
set -e
set -o pipefail

cd /github/workspace

echo "openapi-cli version: $(openapi --version)"

output=$(openapi $*)
exitcode=$?
output=$(openapi $1)

echo "::set-output name=output::$output"

if [ $exitcode -ne 0 ]; then
exit 1
fi

0 comments on commit ae0a300

Please sign in to comment.