-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (63 loc) · 2.25 KB
/
release-notes.yaml
File metadata and controls
76 lines (63 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Drafts your next Release notes as pull requests are merged into
# default branch
name: Release draft update
on:
# Runs on pushes targeting the default branch (updates the real draft release)
push:
branches: [master, main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
draft-release-notes:
permissions:
# write permission is required to create a github release
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0 # full history with tags to get the version number
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.9.0
with:
environments: default
activate-environment: default
run-install: true
frozen: true
cache: false
post-cleanup: false
- name: Install and setup development dependencies
shell: bash
run: pixi run dev
- name: Drafts the next release notes
id: draft
uses: enhantica/drafterino@v2
with:
config: |
title: 'easydiffraction $COMPUTED_VERSION'
tag: 'v$COMPUTED_VERSION'
note-template: '- $PR_TITLE (#$PR_NUMBER)'
default-bump: post
major-bump-labels: ['[scope] significant']
minor-bump-labels: ['[scope] enhancement']
patch-bump-labels: ['[scope] bug', '[scope] maintenance']
post-bump-labels: ['[scope] documentation']
release-notes:
- title: 'Added'
labels: ['[scope] significant', '[scope] enhancement']
- title: 'Fixed'
labels: ['[scope] bug']
- title: 'Changed'
labels: ['[scope] maintenance', '[scope] documentation']
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub draft release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: ${{ steps.draft.outputs.tag_name }}
name: ${{ steps.draft.outputs.release_name }}
body: ${{ steps.draft.outputs.release_notes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}