Skip to content

Commit 8164b0a

Browse files
committed
Add support for explictly tagging a release on GitHub as the latest
Closes gh-50927
1 parent 8c23a6a commit 8164b0a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/actions/create-github-release/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ inputs:
44
commercial:
55
description: 'Whether to generate the changelog for the commercial release'
66
required: true
7+
latest:
8+
description: 'Whether the release is the latest release'
9+
required: false
10+
default: 'false'
711
milestone:
812
description: 'Name of the GitHub milestone for which a release will be created'
913
required: true
@@ -27,4 +31,4 @@ runs:
2731
shell: bash
2832
env:
2933
GITHUB_TOKEN: ${{ inputs.token }}
30-
run: gh release create ${{ format('v{0}', inputs.milestone) }} --notes-file changelog.md ${{ inputs.pre-release == 'true' && '--prerelease' || '' }}
34+
run: gh release create ${{ format('v{0}', inputs.milestone) }} --notes-file changelog.md ${{ inputs.pre-release == 'true' && '--prerelease' || format('--latest={0}', inputs.latest) }}

0 commit comments

Comments
 (0)