diff --git a/.gitea/workflows/dns.yml b/.gitea/workflows/dns.yml index d124ce8..68f2137 100644 --- a/.gitea/workflows/dns.yml +++ b/.gitea/workflows/dns.yml @@ -29,10 +29,11 @@ jobs: git clone --depth 1 --branch "${{ github.ref_name }}" "${{ github.server_url }}/${{ github.repository }}.git" checkout # The release binary, checked against the release's own checksums, - # kept beside the portal lint so each version is fetched once. + # kept in the runner user's cache so each version is fetched once. - name: dnscontrol run: | - bin="/var/local/cargo-target/dnscontrol-$DNSCONTROL_VERSION" + mkdir -p "$HOME/.cache/dnscontrol" + bin="$HOME/.cache/dnscontrol/dnscontrol-$DNSCONTROL_VERSION" if [ ! -x "$bin" ]; then tmp=$(mktemp -d) base="https://github.com/StackExchange/dnscontrol/releases/download/v$DNSCONTROL_VERSION"