From 2c2cfc0b739886ff34da36698c05753829c0fc2f Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 19:22:52 +0100 Subject: [PATCH] fix --- .github/workflows/release.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8fabc8b..aa9723ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,23 +44,43 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' +# - name: Run release-it +# id: release_step +# run: | +# git pull origin main +# +# +# VERSION=$(pnpm exec release-it --ci --release-version) +# echo "version=$VERSION" +# echo "version=$VERSION" >> $GITHUB_OUTPUT +# +# OUTPUT=$(pnpm exec release-it --ci) +# echo "$OUTPUT" +# DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||') +# echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT +# env: +# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Run release-it id: release_step run: | git pull origin main - VERSION=$(pnpm exec release-it --ci --release-version) - echo "version=$VERSION" + echo $VERSION echo "version=$VERSION" >> $GITHUB_OUTPUT OUTPUT=$(pnpm exec release-it --ci) echo "$OUTPUT" - DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||') + + DRAFT_TAG=$(echo "$OUTPUT" | grep -oE 'untagged-[a-z0-9]+') + echo $DRAFT_TAG echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + + publish-docker: needs: create-release uses: ./.github/workflows/docker.yml