Release workflow fixups

(cherry picked from commit ce4aa7669d)
This commit is contained in:
Johannes Altmanninger
2025-09-27 14:34:23 +02:00
parent aba4d26f95
commit 8fe68781be
4 changed files with 63 additions and 56 deletions

View File

@@ -49,9 +49,12 @@ jobs:
mkdir /tmp/fish-built
FISH_ARTEFACT_PATH=/tmp/fish-built ./build_tools/make_tarball.sh
relnotes=/tmp/fish-built/release-notes.md
# Need history since the last release (i.e. tag) for stats.
git fetch --tags
git fetch --unshallow
sh -x ./build_tools/release-notes.sh >"$relnotes"
# Delete title
sed -n 1p "$relnotes" | grep -q "^# fish .*"
sed -n 1p "$relnotes" | grep -q "^## fish .*"
sed -n 2p "$relnotes" | grep -q '^$'
sed -i 1,2d "$relnotes"
- name: Upload tarball artifact