Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,16 @@ runs:
echo "github-token belongs to a user, not an app; leaving reactions alone"
exit 0
fi
ME=$(gh api user --jq .login 2>/dev/null || echo "github-actions[bot]")
# SAME TRAP AS THE TYPE PROBE, and it survived the fix to that one: with an
# installation token `gh api user` can exit 0 and print nothing, so
# `|| echo` never fires and ME came back EMPTY. The delete filter then read
# `select(.user.login=="")`, matched nothing, and the πŸ‘€ stayed on the PR
# for ever while the step reported success. Observed on a clean run that
# placed both πŸ‘€ and πŸ‘ and cleared neither.
#
# Test the VALUE, not the exit status.
ME=$(gh api user --jq .login 2>/dev/null) || ME=""
[ -n "$ME" ] || ME="github-actions[bot]"

# ------------------------------------------------------------------
# πŸ‘€ β€” it said "I am looking at this", and the run has stopped looking.
Expand Down
Loading