Skip to content

Commit b5e7079

Browse files
committed
Print full contents of custom origin list for easier troubleshooting
1 parent 0a00738 commit b5e7079

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy-cors-proxy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ jobs:
7575
7676
readarray -t CUSTOM_ORIGINS <<<"${CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED}"
7777
for origin in "${CUSTOM_ORIGINS[@]}"; do
78+
7879
if ! [[
7980
$origin =~ ^https?:\/\/(?:[a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?::\d{1,5})?$
8081
]]; then
8182
echo "Unable to use CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED"
8283
echo "Invalid origin: '$origin'"
84+
echo "Full contents: '${CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED}'"
8385
exit -1;
8486
fi
8587

0 commit comments

Comments
 (0)