Giter Site home page Giter Site logo

neonidian / teams-notify-build-status Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 2.07 MB

GitHub action: Send message to channel(s) in Microsoft Teams

License: MIT License

JavaScript 100.00%
adaptivecards jobstatus msteams sendmessage status teams webhook workflow message notify

teams-notify-build-status's People

Contributors

dependabot[bot] avatar neonidian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

teams-notify-build-status's Issues

Cards are not displayed with full width

There seems to be a problem with the latest Teams update where the cards are not displayed with full width.

Microsoft says they are investigating the issue here (in the reply to comments)

Update to nodejs v20

Using the action results in this warning in the github runnig action

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: neonidian/teams-notify-build-status@v3.

Add title to card

  • Add optional input ID for title
  • Display title as a larger text in the card
  • Add tests

Notification successfully received in Teams , yet GitAction step fails

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.