From 9723ea8bdc77b2adc131f2b02b6ead8d5d8a1abf Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 16 Nov 2025 10:39:34 -0700 Subject: [PATCH] Comment out functionality to try and figure out what's breaking --- scripts/tagExists.mjs | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/scripts/tagExists.mjs b/scripts/tagExists.mjs index f9e1206..f223bce 100644 --- a/scripts/tagExists.mjs +++ b/scripts/tagExists.mjs @@ -7,22 +7,24 @@ const { FORGEJO_TOKEN: TOKEN, } = process.env; -async function main() { - const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`; +console.log(process.env); - const response = await axios.get( - requestURL, - { - headers: { Authorization: `token ${TOKEN}` }, - validateStatus: () => true, - }, - ); +// async function main() { +// const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`; - // We actually *want* an error when the tag exists, instead of when - // it doesn't - if (response.status === 200) { - process.exit(1); - }; -}; +// const response = await axios.get( +// requestURL, +// { +// headers: { Authorization: `token ${TOKEN}` }, +// validateStatus: () => true, +// }, +// ); -main(); +// // We actually *want* an error when the tag exists, instead of when +// // it doesn't +// if (response.status === 200) { +// process.exit(1); +// }; +// }; + +// main();