mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Merge pull request #19665 from Ultimaker/CURA-12048_option-to-publish-release-description
CURA-12048 Add option to publish release description
This commit is contained in:
commit
2379b4f3e3
1 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,11 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
publish_release_description:
|
||||||
|
description: 'Create the GitHub release (if existing, the description will be overridden based on the changelog)'
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
parse-version:
|
parse-version:
|
||||||
name: Parse input version string
|
name: Parse input version string
|
||||||
|
@ -153,10 +158,12 @@ jobs:
|
||||||
ref: ${{ needs.parse-version.outputs.branch_name }}
|
ref: ${{ needs.parse-version.outputs.branch_name }}
|
||||||
|
|
||||||
- name: Extract changelog
|
- name: Extract changelog
|
||||||
|
if: ${{ inputs.publish_release_description }}
|
||||||
run: python ./scripts/extract_changelog.py --version ${{ needs.parse-version.outputs.version_major }}.${{ needs.parse-version.outputs.version_minor }}.${{ needs.parse-version.outputs.version_patch }} --changelog ./resources/texts/change_log.txt > formatted_changelog.txt
|
run: python ./scripts/extract_changelog.py --version ${{ needs.parse-version.outputs.version_major }}.${{ needs.parse-version.outputs.version_minor }}.${{ needs.parse-version.outputs.version_patch }} --changelog ./resources/texts/change_log.txt > formatted_changelog.txt
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: notpeelz/action-gh-create-release@v5.0.1
|
uses: notpeelz/action-gh-create-release@v5.0.1
|
||||||
|
if: ${{ inputs.publish_release_description }}
|
||||||
with:
|
with:
|
||||||
target: ${{ needs.create-tags.outputs.main_commit }}
|
target: ${{ needs.create-tags.outputs.main_commit }}
|
||||||
tag: ${{ inputs.cura_version }}
|
tag: ${{ inputs.cura_version }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue