Skip to content

Commit 43e69b3

Browse files
committed
✅ Test: try github action to generate changelogf from release
1 parent 162e7d8 commit 43e69b3

File tree

2 files changed

+35
-27
lines changed

2 files changed

+35
-27
lines changed

.github/workflows/cdci.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ name: Python package
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, add-changelog]
66
pull_request:
77
branches: [main]
88
release:
99
types: [published]
10+
workflow_dispatch:
11+
inputs:
12+
branch:
13+
description: 'Branch to run on'
14+
required: true
15+
default: 'main'
1016

1117
jobs:
1218
format:
@@ -51,6 +57,32 @@ jobs:
5157
- name: Run tests
5258
run: python -m pytest tests
5359

60+
changelog:
61+
name: Update changelog
62+
if: github.event_name == 'release' && github.event.action == 'published' || github.event_name == 'workflow_dispatch'
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Checkout branch for manual run
66+
if: github.event_name == 'workflow_dispatch'
67+
uses: actions/checkout@v4
68+
with:
69+
ref: ${{ github.event.inputs.branch }}
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
72+
- name: Checkout main branch for release
73+
if: github.event_name == 'release'
74+
uses: actions/checkout@v4
75+
with:
76+
ref: main
77+
token: ${{ secrets.GITHUB_TOKEN }}
78+
79+
- name: Update CHANGELOG.md
80+
uses: rhysd/changelog-from-release/action@v3
81+
with:
82+
file: CHANGELOG.md
83+
github_token: ${{ secrets.GITHUB_TOKEN }}
84+
args: -l 6
85+
5486
publish:
5587
name: Publish package
5688
if: startsWith(github.ref, 'refs/tags')

CHANGELOG.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,8 @@
11
# Release Notes
22

3-
All notable changes to this project will be documented in this file.
3+
All notable changes to this project will be documented in this file. It was
4+
automatically generated with the [changelog-from-release](https://github.com/rhysd/changelog-from-release) tool.
45

5-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
76

8-
<!-- insertion marker -->
9-
## [v0.1.0](https://github.com/Multiomics-Analytics-Group/vuecore/releases/tag/v0.1.0) - 2025-09-18
107

11-
<small>[Compare with v0.0.5](https://github.com/Multiomics-Analytics-Group/vuecore/compare/v0.0.5...v0.1.0)</small>
12-
13-
## [v0.0.5](https://github.com/Multiomics-Analytics-Group/vuecore/releases/tag/v0.0.5) - 2025-01-31
14-
15-
<small>[Compare with v0.0.4](https://github.com/Multiomics-Analytics-Group/vuecore/compare/v0.0.4...v0.0.5)</small>
16-
17-
## [v0.0.4](https://github.com/Multiomics-Analytics-Group/vuecore/releases/tag/v0.0.4) - 2025-01-29
18-
19-
<small>[Compare with v0.0.3](https://github.com/Multiomics-Analytics-Group/vuecore/compare/v0.0.3...v0.0.4)</small>
20-
21-
## [v0.0.3](https://github.com/Multiomics-Analytics-Group/vuecore/releases/tag/v0.0.3) - 2024-12-18
22-
23-
<small>[Compare with v0.0.2](https://github.com/Multiomics-Analytics-Group/vuecore/compare/v0.0.2...v0.0.3)</small>
24-
25-
## [v0.0.2](https://github.com/Multiomics-Analytics-Group/vuecore/releases/tag/v0.0.2) - 2024-12-17
26-
27-
<small>[Compare with v0.0.1](https://github.com/Multiomics-Analytics-Group/vuecore/compare/v0.0.1...v0.0.2)</small>
28-
29-
## [v0.0.1](https://github.com/Multiomics-Analytics-Group/vuecore/releases/tag/v0.0.1) - 2024-11-28
30-
31-
<small>[Compare with first commit](https://github.com/Multiomics-Analytics-Group/vuecore/compare/2feca7aaa32b58c2d9f0c8dc7638a89311229c34...v0.0.1)</small>
328

0 commit comments

Comments
 (0)