-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create release draft with appropriate pre-filled data
- Loading branch information
1 parent
74efb55
commit a7896c2
Showing
1 changed file
with
48 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
workflow_call: | ||
inputs: | ||
cura_version: | ||
description: 'Cura version number, e.g. 5.7.2 or 5.8.0-beta.2' | ||
description: 'Cura version number, e.g. 5.7, 5.7.2 or 5.8.0-beta.2' | ||
required: true | ||
type: string | ||
|
||
|
@@ -136,3 +136,50 @@ jobs: | |
staging: false | ||
nightly: false | ||
secrets: inherit | ||
|
||
create-release-draft: | ||
name: Create the release draft | ||
runs-on: ubuntu-latest | ||
needs: [create-installers, parse-version] | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/[email protected] | ||
with: | ||
path: artifacts | ||
merge-multiple: true | ||
|
||
- name: Checkout Cura repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Ultimaker/Cura | ||
ref: ${{ needs.parse-version.outputs.branch_name }} | ||
token: ${{ secrets.CURA_AUTORELEASE_PAT }} | ||
|
||
- name: Checkout Cura-workflows repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Ultimaker/Cura-workflows | ||
path: Cura-workflows | ||
ref: CURA-10769_automate_release_action | ||
|
||
- name: Extract changelog | ||
run: python ./Cura-workflows/runner_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: Get commit id for release | ||
id: get-commit-id | ||
uses: iawia002/[email protected] | ||
with: | ||
length: 40 | ||
|
||
- name: Create release | ||
uses: notpeelz/[email protected] | ||
with: | ||
repository: Ultimaker/Cura | ||
token: ${{ secrets.CURA_AUTORELEASE_PAT }} | ||
target: ${{ steps.get-commit-id.outputs.id }} | ||
tag: ${{ inputs.cura_version }} | ||
strategy: replace | ||
title: UltiMaker Cura ${{ inputs.cura_version }} | ||
draft: true | ||
body-source: file | ||
body: formatted_changelog.txt |