Skip to content

Commit

Permalink
feat(updated-links): add Cancelled to status on slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
wimvdputten committed Sep 25, 2024
1 parent 4e6162d commit 911f870
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/notify-slack-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
run: |
echo "inputResult: ${{ inputs.result }}"
echo "parsed_time=`printf '%d min and %d sec \n' $(( ${{ env.time_seconds }}%3600/60 )) $((${{ env.time_seconds }}%60))`" >> "$GITHUB_ENV"
echo "parsed_status=${{ inputs.result^ }}" >> "$GITHUB_ENV"
- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1.24.0
Expand All @@ -60,7 +58,7 @@ jobs:
"elements": [
{
"type": "plain_text",
"text": "${{ inputs.result == 'success' && 'Success' || 'Failure' }} ${{ env.parsed_status }} after ${{ env.parsed_time }}",
"text": "${{ inputs.result == 'success' && 'Success' || inputs.result == 'cancelled' && 'Cancelled' || 'Failure' }} ${{ env.parsed_status }} after ${{ env.parsed_time }}",
"emoji": true
}
]
Expand Down

0 comments on commit 911f870

Please sign in to comment.