Fix release note files on release tracks

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-07 17:36:36 +04:00
parent d0060f6d2c
commit 5b1197db9e
5 changed files with 37 additions and 5 deletions

View File

@@ -310,7 +310,11 @@ jobs:
env:
IMAGE_TAG: ${{ needs.docker-manifest.outputs.image_tag }}
run: |
cp cmd/probod/CHANGELOG.md release-notes.md
VERSION="${GITHUB_REF_NAME##*/v}"
awk -v ver="$VERSION" '
/^## \[/ { if (found) exit; if ($0 ~ "\\[" ver "\\]") found=1 }
found
' cmd/probod/CHANGELOG.md > release-notes.md
cat >> release-notes.md << EOF
## Docker Images