From 0de3bb13caebbeff4c2c62ce27c60a0722c13966 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Fri, 16 Apr 2021 13:40:51 +0300 Subject: [PATCH] Workaround broken reverse name lookup on gh actions (#2545) Signed-off-by: Jari Kolehmainen --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69440e27c6..5e1be781cf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,11 @@ jobs: with: fetch-depth: 0 + - name: Add the current IP address, long hostname and short hostname record to /etc/hosts file + if: runner.os == 'Linux' + run: | + echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + - name: Using Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: