toko-bifrost / ms-teams-deploy-card

Microsoft Teams Deploy Card
MIT License
96 stars 77 forks source link

Feature request: 'show-on-failure' #10

Closed AdamHansrod closed 4 years ago

AdamHansrod commented 4 years ago

If you use this action as a step with an if conditional for job failure, then it won't run the steps necessary to show a card in a teams channel if the job fails.

      - name: Notify channel
        uses: toko-bifrost/ms-teams-deploy-card@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          webhook-uri: ${{ secrets.TEAMS_WEBHOOK_URL }}
          show-on-start: false
          show-on-exit: true
          card-layout-start: compact
          card-layout-exit: compact
        if: ${{ failure() }}

Removing the if condition then notifies the channel for every completed job rather than only on job failures

It'd be great to have a 'show-on-failure' flag so that it only notifies when the job has failed rather than on any job exit

aldwyn-acn commented 4 years ago

@AdamHansrod, thanks for this suggestion. I will look into it.

aldwyn-acn commented 4 years ago

Hi @AdamHansrod. I just released 3.1.1 with this feature. Kindly check.