Skip to content

Commit 134b783

Browse files
committed
Because exit code 1 means success 😆
1 parent 4470c7a commit 134b783

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
2020
-quit \
2121
-createManualActivationFile
2222

23-
# Catch exit code
24-
UNITY_EXIT_CODE=$?
23+
# Catch exit code
24+
UNITY_EXIT_CODE=$?
2525

2626
# Output the resulting file by copying
2727
cp $FILE_NAME $HOME/$FILE_PATH
2828

2929
# Set resulting name as output variable
3030
echo ::set-output name=filePath::$FILE_PATH
3131

32-
33-
if [[ $UNITY_EXIT_CODE -eq 0 ]]; then
32+
# Unity exits with exit code 1 for success cases
33+
if [[ $UNITY_EXIT_CODE -eq 0 ]] || [[ $UNITY_EXIT_CODE -eq 1 ]]; then
3434
echo ""
3535
echo "###########################"
3636
echo "# Succeeded #"

0 commit comments

Comments
 (0)