Use more descriptive ?source query parameter

Note that the documentation for community mirrors on the Zig website
states that I use this one; I meant to update to it when I migrated,
because mirrors may now want to differentiate between this Action and
competing ones in their statistics.
This commit is contained in:
mlugg
2025-07-03 09:45:15 +01:00
parent 5eb0fc8bb8
commit df54020ae2
+2 -2
View File
@@ -17,9 +17,9 @@ const CANONICAL = 'https://ziglang.org/builds';
const MIRRORS_URL = 'https://ziglang.org/download/community-mirrors.txt';
async function downloadFromMirror(mirror, tarball_filename) {
const tarball_path = await tc.downloadTool(`${mirror}/${tarball_filename}?source=github-actions`);
const tarball_path = await tc.downloadTool(`${mirror}/${tarball_filename}?source=github-mlugg-setup-zig`);
const signature_response = await fetch(`${mirror}/${tarball_filename}.minisig?source=github-actions`);
const signature_response = await fetch(`${mirror}/${tarball_filename}.minisig?source=github-mlugg-setup-zig`);
const signature_data = Buffer.from(await signature_response.arrayBuffer());
const tarball_data = await fs.readFile(tarball_path);