Skip to content

Commit

Permalink
feat(updated-links): parse status to first letter uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
wimvdputten committed Sep 25, 2024
1 parent 1176032 commit 4e6162d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/notify-slack-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ 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
Expand All @@ -59,7 +60,7 @@ jobs:
"elements": [
{
"type": "plain_text",
"text": "${{ inputs.result == 'success' && 'Success' || 'Failure' }} after ${{ env.parsed_time }}",
"text": "${{ inputs.result == 'success' && 'Success' || 'Failure' }} ${{ env.parsed_status }} after ${{ env.parsed_time }}",
"emoji": true
}
]
Expand Down

0 comments on commit 4e6162d

Please sign in to comment.