From 4e6162d3a066c7948f5758f2c8658688c78d78fd Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 25 Sep 2024 11:25:39 +0200 Subject: [PATCH] feat(updated-links): parse status to first letter uppercase --- .github/workflows/notify-slack-end.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify-slack-end.yml b/.github/workflows/notify-slack-end.yml index a7e8934..7b1c988 100644 --- a/.github/workflows/notify-slack-end.yml +++ b/.github/workflows/notify-slack-end.yml @@ -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 @@ -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 } ]