Skip to content

Commit fd8672b

Browse files
committed
Avoid pipefail in release tag lookup
1 parent 6f0b556 commit fd8672b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎.github/workflows/deploy-github-pages.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ jobs:
355355
--exclude-drafts \
356356
--limit 50 \
357357
--json tagName \
358-
--jq ".[] | select(.tagName != \"$RELEASE_TAG\") | .tagName" \
359-
| head -n 1
358+
--jq "map(select(.tagName != \"$RELEASE_TAG\")) | first | .tagName // \"\""
360359
)"
361360
362361
if [ -n "$previous_tag" ] && git rev-parse --verify "${previous_tag}^{commit}" >/dev/null 2>&1; then

0 commit comments

Comments
 (0)