Skip to content

Commit

Permalink
ci: fix release tags
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Aug 7, 2023
1 parent 5af64ef commit 6e2e519
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ jobs:
id: changes
name: Check annotated tag
run: |
git fetch --tags -f
title=$(git for-each-ref --format="%(contents:subject)" ${GITHUB_REF})
body=$(git for-each-ref --format="%(contents:body)" ${GITHUB_REF})
tag="${GITHUB_REF#refs/tags/}"
if test "$title" = "Version ${tag#v}" -a -n "$body"; then
echo "title=$title" >> "$GITHUB_OUTPUT"
echo "body=$body" >> "$GITHUB_OUTPUT"
DELIM=$(openssl rand -hex 8)
echo "body<<$DELIM" >> "$GITHUB_OUTPUT"
echo "$body" >> "$GITHUB_OUTPUT"
echo "$DELIM" >> "$GITHUB_OUTPUT"
else
echo "::error title=Missing tag annotation::$tag"
changelog=$(git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD)
Expand Down

0 comments on commit 6e2e519

Please sign in to comment.