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 } ]