Fix subject-only signed release tags
Modular container CI / release-build (push) Failing after 23m53s
Modular container CI / release-build (push) Failing after 23m53s
This commit is contained in:
2 files changed
+52
-21
No files matched your search
@@ -62,6 +62,22 @@ if grep -Fq -- 'SSH SIGNATURE' "$temporary/notes.md"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Git 2.34 can underflow while formatting %(contents:body) for an SSH-signed
|
||||
# tag with only a subject. Subject-only release notes must remain supported.
|
||||
git -C "$repository" switch -q main
|
||||
git -C "$repository" tag -s -a v1.2.4 -m 'Echoion 1.2.4'
|
||||
subject_only_tag=$(git -C "$repository" rev-parse 'refs/tags/v1.2.4^{tag}')
|
||||
(
|
||||
cd "$repository"
|
||||
"$verifier" \
|
||||
--tag v1.2.4 \
|
||||
--event-sha "$subject_only_tag" \
|
||||
--allowed-signers "$temporary/allowed-signers" \
|
||||
--notes-output "$temporary/subject-only-notes.md" \
|
||||
>/dev/null
|
||||
)
|
||||
test "$(<"$temporary/subject-only-notes.md")" = 'Echoion 1.2.4'
|
||||
|
||||
(
|
||||
cd "$repository"
|
||||
"$verifier" \
|
||||
|
||||
Reference in new issue
Block a user