We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c60530 commit a56d41dCopy full SHA for a56d41d
.github/workflows/hostname.yml
@@ -52,12 +52,12 @@ jobs:
52
- name: Run hostname check script
53
run: |
54
echo "Hostname: $env:COMPUTERNAME"
55
- echo "Fully Qualified Domain Name: $([System.Net.Dns]::GetHostByName("").HostName)"
+ echo "Fully Qualified Domain Name: $([System.Net.Dns]::GetHostByName($env:COMPUTERNAME).HostName)"
56
echo "Pinging localhost..."
57
ping -n 1 localhost
58
echo "Pinging hostname..."
59
ping -n 1 $env:COMPUTERNAME
60
echo "Pinging FQDN..."
61
- ping -n 1 $([System.Net.Dns]::GetHostByName("").HostName)
+ ping -n 1 $([System.Net.Dns]::GetHostByName($env:COMPUTERNAME).HostName)
62
shell: pwsh
63
if: runner.os == 'Windows'
0 commit comments