Repos / shark / 49f7edb5a5
commit 49f7edb5a53edfc997b5585bff711d7de76e8104
Author: Nhân <hi@imnhan.com>
Date: Thu Jul 7 21:27:46 2022 +0700
reuse git tag msg for GH Release message
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b192f4f..14de397 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -55,5 +55,11 @@ jobs:
if gh release view "$TAG"; then
gh release upload "$TAG" dist/*
else
- gh release create "$TAG" dist/* --generate-notes
+ # Work around GH being daft:
+ # https://github.com/actions/checkout/issues/290
+ git fetch --force --tags
+
+ git tag -l --format='%(contents)' "$TAG" > RELEASE_NOTES
+ cat RELEASE_NOTES
+ gh release create "$TAG" dist/* -F RELEASE_NOTES
fi