diff --git a/.github/workflows/notify-slack-end.yml b/.github/workflows/notify-slack-end.yml index 7b1c988..f39c4d1 100644 --- a/.github/workflows/notify-slack-end.yml +++ b/.github/workflows/notify-slack-end.yml @@ -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 @@ -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 } ]