From 6602487ad4a95eab670d4a64a78d97168d2d8040 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 21 Apr 2021 07:23:40 -0500 Subject: [PATCH] Remove temporary fix for /etc/hosts --- .github/actions/fix-etc-hosts/action.yml | 18 ------------------ .github/workflows/ci.yml | 2 -- 2 files changed, 20 deletions(-) delete mode 100644 .github/actions/fix-etc-hosts/action.yml diff --git a/.github/actions/fix-etc-hosts/action.yml b/.github/actions/fix-etc-hosts/action.yml deleted file mode 100644 index 15efcaed2e..0000000000 --- a/.github/actions/fix-etc-hosts/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Fix /etc/hosts -description: | - Workaround for - "Reverse name lookup is broken for current hostname in ubuntu-latest VMs", - reported as https://github.com/actions/virtual-environments/issues/3185 -runs: - using: composite - steps: - - run: | - if [[ "$OSTYPE" == "linux-gnu"* ]]; then - # Ensure that reverse lookups for current hostname are handled properly - # Add the current IP address, long hostname and short hostname record to /etc/hosts file - eth0_ip_addr=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1) - hostname_fqdn=$(hostname -f) - hostname_short=$(hostname -s) - echo -e "${eth0_ip_addr}\t${hostname_fqdn} ${hostname_short}" | sudo tee -a /etc/hosts - fi - shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f4bff2339..5fbc4c8b2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,8 +78,6 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: ./.github/actions/fix-etc-hosts - - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2