From b45e608d8ac889763cc728726e789ef2077917af Mon Sep 17 00:00:00 2001 From: 0vethor0 <161180971+0vethor0@users.noreply.github.com> Date: Sun, 5 Apr 2026 23:57:10 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20correccion=20del=20token=20de=20autentic?= =?UTF-8?q?aci=C3=B3n=20en=20el=20flujo=20de=20trabajo=20de=20lanzamiento?= =?UTF-8?q?=20y=20mejora=20la=20extracci=C3=B3n=20de=20notas=20AI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3316944..b930170 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: id: release with: release-type: node - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.RELEASE_BOT_TOKEN }} generate-release-notes: runs-on: ubuntu-latest @@ -54,8 +54,11 @@ jobs: ] }' > ai_response.json - # Corrección: Se ajustó la ruta de jq para acceder al primer elemento de choices - echo "PROMPT_RESPONSE=$(jq -r '.choices[0].message.content' ai_response.json)" >> $GITHUB_ENV + # Extraer y manejar notas multilínea de forma segura para GITHUB_ENV + CONTENT=$(jq -r '.choices[0].message.content' ai_response.json) + echo "PROMPT_RESPONSE<> $GITHUB_ENV + echo "$CONTENT" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV - name: Update GitHub Release with AI Notes uses: softprops/action-gh-release@v2