check against full_name to include owner. #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Configuration | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Verify 'wails.json' file exists. | |
shell: bash | |
run: | | |
if [ ! -f ./wails.json ]; then | |
echo -e "\033[31mError: wails.json not found in the root directory!" | |
exit 1 | |
fi | |
- name: Read properties. | |
shell: bash | |
run: | | |
PROJ_NAME=$(jq -r '.name' ./wails.json) | |
if [ -z "$PROJ_NAME" ]; then | |
echo -e "\033[31mError: key `name` empty or not found in wails.json!" | |
exit 1 | |
fi | |
echo -e "\033[32mProject name is '$PROJ_NAME'" | |
OUTPUT_NAME=$(jq -r '.outputfilename' ./wails.json) | |
if [ -z "$OUTPUT_NAME" ]; then | |
echo -e "\033[31mError: key `outputfilename` empty or not found in wails.json!" | |
exit 1 | |
fi | |
echo -e "\033[32mOutput file (binary) name is '$OUTPUT_NAME'" |