ms-teams-deploy-card icon indicating copy to clipboard operation
ms-teams-deploy-card copied to clipboard

Show Card on Failure is resulting in a card for skipped jobs

Open dakota-maker-by opened this issue 4 years ago • 6 comments

Hi there,

My team has been using this library now for a little bit and the cards have been working great, but we are getting some unexpected behavior from the show-on-failure property, which is showing cards when the job has skipped. I definitely get the idea behind skipped not being success, but given the name I think show-on-failure should only show for failed builds

Screen Shot 2020-07-27 at 9 37 03 AM

setup:

- name: Publish Automerge Failure Card
  uses: toko-bifrost/[email protected]
  if: always()
  with:
      github-token: ${{ secrets.pat }}
      webhook-uri: ${{ secrets.uri }}
      show-on-start: false
      show-on-failure: true

dakota-maker-by avatar Jul 27 '20 14:07 dakota-maker-by

Hi @dakota-maker-by, could you please use the one in branch release/v3 and tell me what you see on the post-action logs? Thanks.

aldwyn-acn avatar Jul 29 '20 16:07 aldwyn-acn

As there are no updates on this issue in at least a month, I'm closing this for now.

aldwyn-acn avatar Sep 18 '20 14:09 aldwyn-acn

Hello

I've encountered this issue today using version [email protected]

For me it's happening with multi job builds image

Although the jobs are showing as completed successfully the card if reporting a skipped status

image

Shaun-Harrison avatar Jan 07 '21 09:01 Shaun-Harrison

Is there any news on this please @aldwyn-acn

Shaun-Harrison avatar Feb 11 '21 12:02 Shaun-Harrison

Hey @Shaun-Harrison, I'll work on this over the weekend. Thanks for the heads-up.

aldwyn-acn avatar Feb 11 '21 13:02 aldwyn-acn

We're encountering the same issue. In our case, the job is success, but it shows as skipped.

In the setup we have some e2e tests as a second to last test, and the very last step is a conditional to upload tests artefacts if the e2e fails, so the last step will always be skipped on a successful job run.

oshdev avatar Aug 13 '21 13:08 oshdev