Skip to content

Commit 9a3c69e

Browse files
committed
Clearer message
1 parent d26fdfe commit 9a3c69e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/check-site-url.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ check_site_url() {
2424
if ! grep -q "'url' => env('SITE_URL', 'http://localhost')," config/hyde.php; then
2525
return 0
2626
fi
27-
echo "::warning file=config/hyde.php,line=$line_number,title=Missing Site URL::The site URL is set to localhost in your configuration file. Consider setting a production URL."
27+
echo "::warning file=config/hyde.php,line=$line_number,title=Missing Site URL::The site URL is set to localhost in your configuration file. Consider setting a production URL here or in using the 'env' input with 'SITE_URL=https://example.com'"
2828
return 0
2929
fi
3030
fi

tests/unit/test-check-site-url.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test_site_url_warnings() {
5050
# Test case 4: SITE_URL in config but with localhost
5151
echo "'url' => env('SITE_URL', 'http://localhost')," > config/hyde.php
5252
output=$(bash "$base_dir/src/check-site-url.sh")
53-
expected="::warning file=config/hyde.php,line=1,title=Missing Site URL::The site URL is set to localhost in your configuration file. Consider setting a production URL."
53+
expected="::warning file=config/hyde.php,line=1,title=Missing Site URL::The site URL is set to localhost in your configuration file. Consider setting a production URL here or in using the 'env' input with 'SITE_URL=https://example.com'"
5454

5555
if [[ "$output" != "$expected" ]]; then
5656
echo "Test 4 failed: Warning not shown when SITE_URL is localhost"

0 commit comments

Comments
 (0)