Skip to content

Commit

Permalink
Create release draft with appropriate pre-filled data
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jun 4, 2024
1 parent 74efb55 commit a7896c2
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/release-process_release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit a7896c2

Please sign in to comment.