Skip to content

Commit

Permalink
Merge pull request #55 from dscho/mark-release-as-latest
Browse files Browse the repository at this point in the history
/release: explicitly mark full versions as the latest GitHub Release
  • Loading branch information
dscho authored Aug 22, 2023
2 parents 82166f3 + 8d66606 commit 6202895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/github-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,16 @@ runs:
await state.refreshToken()
console.log('Publishing release')
const isPrerelease = '${{ inputs.tag-name }}'.indexOf('-rc') > 0
await updateRelease(
console,
state.accessToken,
'${{ inputs.owner }}',
'${{ inputs.repo }}',
release.id, {
draft: false,
prerelease: '${{ inputs.tag-name }}'.indexOf('-rc') > 0
prerelease: isPrerelease,
make_latest : !isPrerelease
}
)
- name: update check-run
Expand Down

0 comments on commit 6202895

Please sign in to comment.