The check on this line:
|
if [[ ! "$hostname" =~ ^(fv-az|fv-az[0-9]|GitHub-Actions-) ]]; then |
seems to always fail in GitHub Actions because the hostname doesn't match the expected names. Acceptable names include runner* e.g. runnervm3ublj. This line could be updated to support this naming.