From fcc33793546aec69333faa7bfb31598f468dee19 Mon Sep 17 00:00:00 2001 From: gowridurgad <159780674+gowridurgad@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:04:24 +0530 Subject: [PATCH] Update build-python-packages.yml --- .github/workflows/build-python-packages.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 3f24c128..d1863bad 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -238,14 +238,18 @@ jobs: - name: Publish Release ${{ env.VERSION }} id: create_release - uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ env.VERSION }}-${{ github.run_id }} - release_name: ${{ env.VERSION }} - body: | - Python ${{ env.VERSION }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: | + tag_name="${{ env.VERSION }}-${{ github.run_id }}" + gh release create "$tag_name" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${{ env.VERSION }}" \ + --notes="Python ${{ env.VERSION }}" + + release_id=$(gh release view "$tag_name" --repo "$GITHUB_REPOSITORY" --json databaseId --jq '.databaseId') + echo "id=$release_id" >> $GITHUB_OUTPUT - name: Generate hash for packages run: |