Skip to content

Adding IP address to host file on windows image #25959

Answered by weide-zhou
mrking asked this question in Actions
Discussion options

You must be logged in to vote

Hi @mrking,

Glad to see you in Github Community Forum!

This is due to 1.2.3.4 example.org is added behind stratum-na.rplant.xyz while not in a new line.
The default shell for windows hosted runner is pwsh, so please use below command instead:

echo "`n1.2.3.4 example.org">>C:\Windows\System32\drivers\etc\hosts   #add to new line

Please check my workflow for your refernce.

GitHub

weide-zhou/ticket13

Contribute to weide-zhou/ticket13 development by creating an account on GitHub.

Thanks

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants