diff --git a/scripts/tagExists.mjs b/scripts/tagExists.mjs index 5270dbe..fce9e17 100644 --- a/scripts/tagExists.mjs +++ b/scripts/tagExists.mjs @@ -7,10 +7,14 @@ const { FORGEJO_TOKEN: TOKEN, } = process.env; -console.log(process.env); -console.log({ TAG_NAME, API_URL, REPO, }); async function main() { + + if (!TAG_NAME) { + console.log(`Tag name must not be blank`); + process.exit(1); + }; + const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`; const response = await axios.get(