From 8fb267ab47de43794f532ee8a7d05fef9db770fe Mon Sep 17 00:00:00 2001 From: nythepegasus Date: Wed, 13 Nov 2024 09:10:58 -0500 Subject: [PATCH] Use a tmp file in an attempt to fix Signed-off-by: nythepegasus --- .github/workflows/static.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d82e31a..e6a0291 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -49,7 +49,7 @@ jobs: sha256sum servers.json | cut -d ' ' -f1 | cut -c1-8 > servers.json.hash - name: Add hash URL to servers.json run: | - jq --arg url "https://$(cat CNAME)/servers.json.hash" '. + {"cache": $url}' servers.json > servers.json + jq --arg url "https://$(cat CNAME)/servers.json.hash" '. + {"cache": $url}' servers.json > tmp.json && mv tmp.json servers.json && rm tmp.json - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: