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}`;