Skip to content

Commit a0127a1

Browse files
github-actions[bot]petesramekPete Sramekdependabot[bot]
authored
Promote develop/1.0 to preview/1.0 (#103)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Pete Sramek <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Pete Sramek <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent d5323cb commit a0127a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
description: 'Is this a preview release?'
1010
required: true
1111
notes-start-tag:
12-
description: 'Tag to start generating release notes from. Default: latest tag.'
12+
description: 'Tag to start generating release notes from. Default: '''''
1313
required: false
1414
default: ''
1515

@@ -22,13 +22,15 @@ runs:
2222
echo "release-version=${{ inputs.release-version }}"
2323
echo "is-preview=${{ inputs.is-preview }}"
2424
echo "preview-argument=${{ inputs.is-preview == 'true' && '--prerelease' || '' }}"
25-
echo "start-tag=$(git describe --abbrev=0 --tags)"
25+
echo "notes-start-tag=${{ inputs.notes-start-tag }}"
26+
echo "notes-start-tag-argument="${{ inputs.notes-start-tag != '' && '--notes-start-tag $(inputs.notes-start-tag)' || '' }}"
2627
shell: bash
2728
- name: 'Create GitHub release PolylineAlgorithm ${{ env.release-version }}'
2829
shell: bash
2930
env:
3031
GH_TOKEN: ${{ github.token }}
32+
release-version: ${{ inputs.release-version }}
3133
preview-argument: "${{ inputs.is-preview == 'true' && '--prerelease' || '' }}"
32-
notes-start-tag-argument: "${{ inputs.notes-start-tag != '' && '--notes-start-tag inputs.notes-start-tag' || '' }}"
34+
notes-start-tag-argument: "${{ inputs.notes-start-tag != '' && '--notes-start-tag $(inputs.notes-start-tag)' || '' }}"
3335
run: |
3436
gh release create ${{ env.release-version }} --generate-notes --discussion-category "General" ${{ env.preview-argument }} ${{ env.notes-start-tag-argument }}

0 commit comments

Comments
 (0)