Skip to content

Commit

Permalink
Checking for main.lua file
Browse files Browse the repository at this point in the history
  • Loading branch information
nhartland committed Apr 14, 2020
1 parent d0888f0 commit a6462dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
required: false
source_dir:
description: 'Path in the repository to the subdirectory containing `main.lua`. By default the repo root'
default: ""
default: "./"
required: true
result_dir:
description: 'Directory in the GitHub workspace where the built distributables should be located'
Expand Down
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ fi
check_environment() {
: "${INPUT_APP_NAME:?'Error: application name unset'}"
: "${INPUT_LOVE_VERSION:?'Error: love version unset'}"
# Check for presence of main.lua
if [ ! -f "${INPUT_SOURCE_DIR}/main.lua" ]; then
echo "Error: Cannot find main.lua in the specified source directory"
exit 1
fi
}

# Fetches the love binaries from GitHub, takes architecture (macos/win32/win64)
Expand Down

0 comments on commit a6462dd

Please sign in to comment.