Skip to content

Commit cb5eb21

Browse files
authored
CI - Fix empty lookup (#3693)
# Description of Changes When the author isn't in the lookup table, we were getting `null` instead of the empty string. This fixes that. # API and ABI breaking changes None. CI only. # Expected complexity level and risk 1 # Testing None Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
1 parent e26e989 commit cb5eb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/discord-posts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
author_discord_id="$(
4646
jq -r \
4747
--arg u "${{ github.event.pull_request.user.login }}" \
48-
'try .[$u] catch empty' \
48+
'.[$u] // empty' \
4949
<<<"${DISCORD_USER_MAP}"
5050
)"
5151
if [ -z "${author_discord_id}" ]; then

0 commit comments

Comments
 (0)