Replace deprecated release action with GitHub CLI

pull/80/head
Priyagupta108 5 months ago
parent 16b7940fde
commit 2eb3e9a611

@ -215,14 +215,18 @@ jobs:
- name: Publish Release - name: Publish Release
id: create_release id: create_release
uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: shell: bash
tag_name: ${{ inputs.tool-version }}-${{ github.run_id }} run: |
release_name: ${{ inputs.tool-version }} tag_name="${{ inputs.tool-version }}-${{ github.run_id }}"
body: | gh release create "$tag_name" \
${{ steps.generate-release-body.outputs.RELEASE_BODY }} --repo="$GITHUB_REPOSITORY" \
--title="${{ inputs.tool-version }}" \
--notes="${{ steps.generate-release-body.outputs.RELEASE_BODY }}"
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 - name: Generate hash for packages
run: | run: |

Loading…
Cancel
Save