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: