Piping with jq and Bash
teams channel list "$TEAM_ID" --output json | jq -r '.data[].id'
Send stdin:
git log --oneline -5 | teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --stdin
Branch on exit code before parsing output in agents.
teams channel list "$TEAM_ID" --output json | jq -r '.data[].id'
Send stdin:
git log --oneline -5 | teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --stdin
Branch on exit code before parsing output in agents.