Skip to content

Commit 764300c

Browse files
committed
add changelog extraction step and initialize CHANGELOG.md and TODO.md
Signed-off-by: ClaytonTDM <claytontdm@gmail.com>
1 parent e5e1255 commit 764300c

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ jobs:
7878
echo "IS_PRERELEASE=false" >> $GITHUB_OUTPUT
7979
echo "This is a stable release version"
8080
fi
81+
82+
- name: Extract changelog for version
83+
id: changelog
84+
run: |
85+
CURRENT_VERSION="v${{ steps.get_version.outputs.VERSION }}"
86+
echo "Extracting changelog for ${CURRENT_VERSION}"
87+
CHANGELOG_SECTION=$(awk -v version="${CURRENT_VERSION}" '
88+
BEGIN { found=0; }
89+
/^## '"${CURRENT_VERSION}"'/ { found=1; next; }
90+
/^## v[0-9]+\.[0-9]+\.[0-9]+/ { if (found) exit; }
91+
{ if (found) print; }
92+
' CHANGELOG.md)
93+
CHANGELOG_SECTION="${CHANGELOG_SECTION//'%'/'%25'}"
94+
CHANGELOG_SECTION="${CHANGELOG_SECTION//$'\n'/'%0A'}"
95+
CHANGELOG_SECTION="${CHANGELOG_SECTION//$'\r'/'%0D'}"
96+
echo "CHANGELOG_SECTION<<EOF" >> $GITHUB_OUTPUT
97+
echo "$CHANGELOG_SECTION" >> $GITHUB_OUTPUT
98+
echo "EOF" >> $GITHUB_OUTPUT
8199
82100
- name: Download all artifacts
83101
uses: actions/download-artifact@v4
@@ -99,6 +117,10 @@ jobs:
99117
body: |
100118
${{ steps.get_version.outputs.IS_PRERELEASE == 'true' && '> ⚠️ **Pre-release version**: This is a development release and may contain bugs or incomplete features.' || '> ✅ **Stable release**: This version is considered stable for production use.' }}
101119
120+
## What's New
121+
122+
${{ steps.changelog.outputs.CHANGELOG_SECTION }}
123+
102124
## Installation
103125
104126
Download the binary:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## v0.1.0 (2025-05-16)
4+
5+
- First release!

TODO.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# TODO
2+
3+
- [ ] Control how many backups to keep (and seperate between auto/manual, the system Timeshift uses is a good starting point)
4+
- [ ] Add a way to list backups (without running `restore`)
5+
- [ ] Save themes from `~/.themes` and `/usr/share/themes`
6+
- [ ] Save icons from `~/.local/share/icons`, `/usr/share/icons`, and `~/.icons`
7+
- [ ] Save fonts from `~/.local/share/fonts`, `/usr/share/fonts`, and `~/.fonts`
8+
- [ ] Delete all existing Cinnamon dconf settings before restoring

0 commit comments

Comments
 (0)