Skip to content

Commit a56d41d

Browse files
committed
fix
1 parent 8c60530 commit a56d41d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/hostname.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
- name: Run hostname check script
5353
run: |
5454
echo "Hostname: $env:COMPUTERNAME"
55-
echo "Fully Qualified Domain Name: $([System.Net.Dns]::GetHostByName("").HostName)"
55+
echo "Fully Qualified Domain Name: $([System.Net.Dns]::GetHostByName($env:COMPUTERNAME).HostName)"
5656
echo "Pinging localhost..."
5757
ping -n 1 localhost
5858
echo "Pinging hostname..."
5959
ping -n 1 $env:COMPUTERNAME
6060
echo "Pinging FQDN..."
61-
ping -n 1 $([System.Net.Dns]::GetHostByName("").HostName)
61+
ping -n 1 $([System.Net.Dns]::GetHostByName($env:COMPUTERNAME).HostName)
6262
shell: pwsh
6363
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)