File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,10 @@ runs:
22
22
name : slack-thread-id-${{ github.run_id }}
23
23
24
24
- name : Extract Slack Thread ID into Environment Variable
25
- env :
26
- RETRIEVE_SLACK_THREAD_ID_OUTCOME : ${{ steps.retrieve-slack-thread-id.outcome }}
25
+ if : steps.retrieve-slack-thread-id.outcome == 'success'
27
26
shell : bash
28
27
run : |
29
- if [ "$RETRIEVE_SLACK_THREAD_ID_OUTCOME" = "success" ]; then
30
- echo "SLACK_THREAD_ID=$(cat slack-thread-id)" | tee -a "$GITHUB_ENV"
31
- else
32
- echo "SLACK_THREAD_ID=none" | tee -a "$GITHUB_ENV"
33
- fi
28
+ echo "SLACK_THREAD_ID=$(cat slack-thread-id)" | tee -a "$GITHUB_ENV"
34
29
35
30
- name : Format message
36
31
env :
61
56
payload : |
62
57
channel: "${{ inputs.channel-id }}"
63
58
text: "${{ env.MESSAGE_TEXT }}"
64
- ${{ env.SLACK_THREAD_ID != 'none ' && format('thread_ts: "{0}"', env.SLACK_THREAD_ID) || '' }}
59
+ ${{ steps.retrieve-slack-thread-id.outcome == 'success ' && format('thread_ts: "{0}"', env.SLACK_THREAD_ID) || '' }}
65
60
attachments:
66
61
- pretext: "See the details below for a summary of which job(s) ${{ env.MESSAGE_VERB }}."
67
62
color: "${{ env.MESSAGE_COLOR }}"
You can’t perform that action at this time.
0 commit comments