Steven Hawkins 10947d002f
fix: using localtest.me instead of nip.io
closes: #40645

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-07-26 11:36:01 +02:00

21 lines
730 B
YAML

name: Update /etc/hosts
description: Update /etc/hosts file to hardcode known hostnames. This is to avoid test instability due to DNS resolution issues.
runs:
using: composite
steps:
- id: update-hosts-linux
name: Update /etc/hosts
if: runner.os == 'Linux'
shell: bash
run: |
printf "\n\n$(cat .github/actions/update-hosts/hosts)" | sudo tee -a /etc/hosts
- id: update-hosts-windows
name: Update C:\Windows\System32\drivers\etc\hosts
if: runner.os == 'Windows'
shell: powershell
run: |
"`n`n" | Add-Content C:\Windows\System32\drivers\etc\hosts
Get-Content .github/actions/update-hosts/hosts | Add-Content C:\Windows\System32\drivers\etc\hosts