Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification successfully received in Teams , yet GitAction step fails #90

Closed
B-Visagie opened this issue May 6, 2024 · 4 comments
Closed

Comments

@B-Visagie
Copy link

Hi @neonidian ,

Firstly thanks for your GitHub Action utility, I found it to be the most functional of the Teams notification utilities I have looked at recently.

I am encountering a bit of a strange problem. The utility is successfully and correctly publishing to my desired Teams channel, but the step is failing with the following errors::
image

But the message is successfully sent and appears where I expect it within my MS Teams channel:
image

GitAction snippet:

- name: Notify Teams channel of the test results
  uses: neonidian/teams-notify-build-status@v4
  with:
    # Can send to multiple channels in MS Teams
    webhookUrl: |
      ${{ secrets.TEAMS_INCOMING_WEBHOOK_URL }}
    # Specify a title header
    title: Test Result Summary for REDACTED on the REDACTED test environment
    titleBackgroundColor: ${{ env.STATUS_COLOR }}
    status: ${{ env.STATUS_COLOR }}
    message: >-
      💡 Total: ${{ env.TOTAL }} | ✅ Passed: ${{ env.PASS }} | ❌ Failed: ${{ env.FAIL }} | ⏭️ Skipped: ${{ env.SKIP }}
  env: # Enable actor labels and buttons using environment variables
    SHOULD_DISPLAY_ACTOR_LABEL: true
    SHOULD_DISPLAY_VIEW_RUN_BUTTON: true
    SHOULD_DISPLAY_VIEW_COMMIT_BUTTON: true
@B-Visagie
Copy link
Author

B-Visagie commented May 6, 2024

For the moment, I have simply added the following to my Notify Teams channel of the test results build step , which stops the entire job from failing: continue-on-error: true

@neonidian
Copy link
Owner

Thanks for using this action and reporting this issue. A successful response from Teams server should have the text "1" but null is returned. I suspect this could be because of this bug that Microsoft has acknowledged and are working on a fix.

My guess would be that though Teams does render it in the UI, there is something going wrong with the server not responding with 1 due to this bug

@B-Visagie
Copy link
Author

Thanks for the info @neonidian hopefully they fix this at some point!

@B-Visagie
Copy link
Author

I will monitor the bug report. I don't think this issue needs to stay open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants