Skip to content

Commit

Permalink
newer check for 0
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Dec 20, 2024
1 parent 946e88b commit 2632526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/notify-irc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ACTOR="${2:-unknown}"
BRANCH="${3:-unknown}"
COMPARE_URL="${4:-unknown}"

commit_count=$(echo "$COMMITS_JSON" | jq 'length' || echo 0)
commit_count=$(echo "$COMMITS_JSON" | jq 'length')
commit_count=${commit_count:-0}

if [ "$commit_count" -eq 0 ]; then
echo "message=[openzfs] $ACTOR pushed no commits to $BRANCH at $COMPARE_URL"
Expand Down

0 comments on commit 2632526

Please sign in to comment.