Skip to content

Commit 7b8311c

Browse files
committed
ci: Fixes a bug that prevented SSH signature from being stripped from release notes when extracting them from a Git Tag annotation.
1 parent 9d4c2bd commit 7b8311c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ jobs:
183183
set -e
184184
git fetch --tags --force # see https://github.com/actions/checkout/issues/290
185185
git for-each-ref "${GITHUB_REF}" --format='%(contents)' > release-notes.rst
186-
# Strip PGP signature from signed tags
187-
sed -i "/-----BEGIN PGP SIGNATURE-----/,/-----END PGP SIGNATURE-----\n/d" release-notes.rst
186+
# Strip signature from signed tags
187+
sed -i -e "/-----BEGIN PGP SIGNATURE-----/,/-----END PGP SIGNATURE-----\n/d" \
188+
-e "/-----BEGIN SSH SIGNATURE-----/,/-----END SSH SIGNATURE-----\n/d" release-notes.rst
188189
- name: Convert Release Notes to Markdown
189190
run: |
190191
pandoc --wrap=preserve -o release-notes.md release-notes.rst

0 commit comments

Comments
 (0)