From 4444735e81560f0cf063854798c0fb06c956b5cf Mon Sep 17 00:00:00 2001 From: Pal Kerecsenyi Date: Tue, 2 Apr 2024 14:05:10 +0100 Subject: [PATCH] Change DNS config setup --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9b12fb0..ab3ad26 100644 --- a/action.yml +++ b/action.yml @@ -34,5 +34,7 @@ runs: run: tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 & tailscale up --authkey="${{ inputs.tailscale-token }}" --advertise-tags=tag:gitea-runners shell: sh - name: Configure DNS - run: echo -e "nameserver 100.100.100.100\nnameserver 1.1.1.1\nnameserver 1.0.0.1" > /etc/resolv.conf + run: | + echo -e "nameserver 100.100.100.100\nnameserver 1.1.1.1\nnameserver 1.0.0.1" | cat - /etc/resolv.conf > /tmp/resolv.conf + mv /tmp/resolv.conf /etc/resolv.conf shell: sh