Skip to content

Commit f61db12

Browse files
committed
fixing some output
1 parent 7ab9532 commit f61db12

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ runs:
3838
3939
# Check if the binary exists
4040
if [ ! -f "$BINARY_PATH" ]; then
41-
echo "📭 Binary not found. Building the project..."
42-
swift build --configuration release
41+
42+
echo "📭 Binary not found at $BINARY_PATH. Building the project..."
43+
swift build --configuration release
44+
4345
# Check if the build was successful
44-
if [ $? -ne 0 ]; then
45-
echo "Build failed"
46+
if [ ! -f "$BINARY_PATH" ]; then
47+
echo "Build failed"
4648
exit 1
47-
fi
49+
fi
4850
else
4951
echo "📬 Binary found at $BINARY_PATH"
5052
fi

0 commit comments

Comments
 (0)