Skip to content

Commit 4aa7bfa

Browse files
committed
Allow releases without changelog contributors
Treat a changelog with no PR links as an empty contributor list so the publishing workflow can continue.
1 parent f3d22fc commit 4aa7bfa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/release-publish.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
CHANGELOG: ${{ steps.changelog.outputs.body }}
8787
run: |
8888
# Extract PR numbers from changelog links like [#123](...).
89-
PR_NUMBERS=$(echo "$CHANGELOG" | grep -oE '\[#[0-9]+\]' | tr -d '[]#' | sort -u)
89+
# A changelog without matching links has no contributors to fetch.
90+
PR_NUMBERS=$(echo "$CHANGELOG" | { grep -oE '\[#[0-9]+\]' || [ "$?" -eq 1 ]; } | tr -d '[]#' | sort -u)
9091
9192
CONTRIBUTORS=""
9293
if [ -n "$PR_NUMBERS" ]; then

0 commit comments

Comments
 (0)