We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cba9656 commit 4500857Copy full SHA for 4500857
1 file changed
example-workflows/Technique_4_Slack_CLI_Command/collaborators.yml
@@ -36,7 +36,7 @@ jobs:
36
if: ${{ steps.email.outputs.ok }}
37
run: |
38
SLACK_USER_ID=$(echo '${{ steps.email.outputs.response }}' | jq -r '.user.id')
39
- SLACK_DISPLAY_NAME=$(echo '${{ steps.email.outputs.response }}' | jq -r '.user.profile.display_name // .user.real_name')
+ SLACK_DISPLAY_NAME=$(echo '${{ steps.email.outputs.response }}' | jq -r '(.user.profile.display_name | select(. != "")) // .user.real_name')
40
echo "SLACK_USER_ID=$SLACK_USER_ID" >> "$GITHUB_ENV"
41
echo "SLACK_DISPLAY_NAME=$SLACK_DISPLAY_NAME" >> "$GITHUB_ENV"
42
0 commit comments