Skip to content

Commit 45e7f5d

Browse files
committed
Merge branch '4.0.x' into 4.1.x
Closes gh-51108
2 parents b832216 + 8164b0a commit 45e7f5d

2 files changed

Lines changed: 6 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) }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,6 @@ jobs:
174174
uses: ./.github/actions/create-github-release
175175
with:
176176
commercial: ${{ vars.COMMERCIAL }}
177+
latest: true
177178
milestone: ${{ needs.build-and-stage-release.outputs.version }}
178179
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}

0 commit comments

Comments
 (0)