From 5b636888340ee3accd180be4e2a7d2caf412809f Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 16 Nov 2025 11:01:08 -0700 Subject: [PATCH] Try using a different output method --- .forgejo/workflows/draft-release.yaml | 8 ++++---- scripts/tagExists.mjs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/draft-release.yaml b/.forgejo/workflows/draft-release.yaml index 7ebbe3a..57ac243 100644 --- a/.forgejo/workflows/draft-release.yaml +++ b/.forgejo/workflows/draft-release.yaml @@ -16,10 +16,10 @@ jobs: id: version run: cat system.json | echo version=`jq -r ".version"` - # - name: Assert that the tag doesn't exist - # run: node scripts/tagExists.mjs - # env: - # TAG_NAME: ${{steps.version.output.version}} + - name: Assert that the tag doesn't exist + run: node scripts/tagExists.mjs + env: + TAG_NAME: "v${{steps.version.output.version}}" # - name: Build compendia # run: "npm run data:build" diff --git a/scripts/tagExists.mjs b/scripts/tagExists.mjs index 6b6a6fa..5270dbe 100644 --- a/scripts/tagExists.mjs +++ b/scripts/tagExists.mjs @@ -8,6 +8,7 @@ const { } = process.env; console.log(process.env); +console.log({ TAG_NAME, API_URL, REPO, }); async function main() { const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`;