-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19665 from Ultimaker/CURA-12048_option-to-publish…
…-release-description CURA-12048 Add option to publish release description
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,11 @@ on: | |
required: true | ||
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: | ||
parse-version: | ||
name: Parse input version string | ||
|
@@ -153,10 +158,12 @@ jobs: | |
ref: ${{ needs.parse-version.outputs.branch_name }} | ||
|
||
- 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 | ||
|
||
- name: Create release | ||
uses: notpeelz/[email protected] | ||
if: ${{ inputs.publish_release_description }} | ||
with: | ||
target: ${{ needs.create-tags.outputs.main_commit }} | ||
tag: ${{ inputs.cura_version }} | ||
|