mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Replace deprecated release action with GitHub CLI (#80)
This commit is contained in:
18
.github/workflows/build-tool-packages.yml
vendored
18
.github/workflows/build-tool-packages.yml
vendored
@@ -215,14 +215,18 @@ jobs:
|
||||
|
||||
- name: Publish Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ inputs.tool-version }}-${{ github.run_id }}
|
||||
release_name: ${{ inputs.tool-version }}
|
||||
body: |
|
||||
${{ steps.generate-release-body.outputs.RELEASE_BODY }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
shell: bash
|
||||
run: |
|
||||
tag_name="${{ inputs.tool-version }}-${{ github.run_id }}"
|
||||
gh release create "$tag_name" \
|
||||
--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
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user