From df54020ae294423e048959d4478c1e33aa2e891d Mon Sep 17 00:00:00 2001 From: mlugg Date: Thu, 3 Jul 2025 09:33:43 +0100 Subject: [PATCH] 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. --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 04fcb30..6dc62b7 100644 --- a/main.js +++ b/main.js @@ -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);