Merge pull request 'added release notes automation' (#1) from feature/automation into main
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -26,6 +26,28 @@ jobs:
|
||||
echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "Version: $VERSION"
|
||||
|
||||
- name: Extract Release Notes
|
||||
id: release_notes
|
||||
run: |
|
||||
VERSION=$(cat version.txt)
|
||||
# Extract release notes for this version
|
||||
# Find the section for this version and extract until the next version section
|
||||
RELEASE_NOTES=$(awk -v ver="$VERSION" '
|
||||
/^## \[/ {
|
||||
if (found) exit
|
||||
if ($0 ~ "\\[" ver "\\]") found=1
|
||||
else if (found) exit
|
||||
next
|
||||
}
|
||||
found && NF { print }
|
||||
' RELEASENOTES.md | sed -e :a -e '/^$/N;$!ba' -e 's/^[[:space:]]*//;s/[[:space:]]*$//')
|
||||
|
||||
# Escape newlines for GitHub output
|
||||
RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}"
|
||||
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}"
|
||||
RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}"
|
||||
echo "body=$RELEASE_NOTES" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile Spearhead
|
||||
uses: https://git.dutchie031.com/dutchie031/DcsMissionScriptingTools/github-action@action/v0
|
||||
with:
|
||||
@@ -57,6 +79,7 @@ jobs:
|
||||
with:
|
||||
tag_name: ${{ steps.read_version.outputs.tag }}
|
||||
name: Release ${{ steps.read_version.outputs.tag }}
|
||||
body: ${{ steps.release_notes.outputs.body }}
|
||||
draft: true
|
||||
files: |-
|
||||
./output/spearhead.lua
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
### [Unreleased]
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
### New Features
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
## [0.12.0] 2026-06
|
||||
|
||||
Migration to Gitea. <br>
|
||||
First version of the Gitea repository. <br>
|
||||
Everything is new, but also old.
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
Nothing worth mentioning
|
||||
|
||||
### New Features
|
||||
|
||||
All and none
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
No bugs fixed, they're all still there.
|
||||
|
||||
## [x.x.x] Year - Month Release Template
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
|
||||
### New Features
|
||||
|
||||
### Bug Fixes
|
||||
Reference in New Issue
Block a user