From cdfbea8cdaa365945636e70916b870830cf50f36 Mon Sep 17 00:00:00 2001 From: Patryk Cholewa Date: Fri, 15 Nov 2024 00:07:11 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b41f96..9ac36cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,9 +83,10 @@ jobs: # Create draft release - name: Create draft release id: create_draft - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} + result-encoding: string script: | const tagName = context.payload.inputs.tag; const releaseDescription = context.payload.inputs.release_name; @@ -97,14 +98,13 @@ jobs: body: releaseDescription, // Description as {release_name} draft: true }); - // Export release_id to the environment for the next steps - console.log(`RELEASE_ID=${release.data.id}`); + return release.id; # Upload JAR files to the draft release - name: Upload JAR files to draft release uses: actions/github-script@v6 env: - RELEASE_ID: ${{ steps.create_draft.outputs.release_id }} + RELEASE_ID: ${{ steps.create_draft.outputs.result }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -145,7 +145,7 @@ jobs: - name: Publish draft release uses: actions/github-script@v6 env: - RELEASE_ID: ${{ steps.create_draft.outputs.release_id }} + RELEASE_ID: ${{ steps.create_draft.outputs.result }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |