Github action to update a Github release given by its ID. Can be used in combination with kaliber5/action-get-release.
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Get latest release
id: latest_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
latest: true
- name: Update release
uses: kaliber5/action-update-release@v1
with:
token: ${{ github.token }}
id: ${{ steps.latest_release.outputs.id }}
name: My changed release nametoken: The Github token used for authentication. Required,${{ github.token }}can be used usually.owner: Name of the owner of the repo, taken from current repo by default.repo: Name of the repository, taken from current repo by default.id: The ID to identify the release. Required!name: Name of the releasebody: Body text of the release.tag_name: Tag name of the release.target_commitish: Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.prerelease: Mark this release as a pre-release.draft: Set to false to publish a draft release.
id: The ID of the Releaseurl: The release urlhtml_url: The url users can navigate to in order to view the releaseassets_url: The release assets urlupload_url: The url for uploading assets to the releasename: The release namebody: The release's body contenttag_name: The git tag associated with the releasedraft: Is draftprerelease: Is pre-releasetarget_commitish: The release was create to which target branchcreated_at: Created datepublished_at: Published date