neonidian / teams-notify-build-status Goto Github PK
View Code? Open in Web Editor NEWGitHub action: Send message to channel(s) in Microsoft Teams
License: MIT License
GitHub action: Send message to channel(s) in Microsoft Teams
License: MIT License
A valid adaptive card JSON being used in the GitHub action is not being accepted by Teams server and returns a 200 with error message. Microsoft has acknowledged the problem and are looking into this here
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)
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 attempt ID to 'View Run' button's URL so that the URL is redirected to the correct Workflow run attempt
GITHUB_ACTOR
provides the name of the workflow initiator.Add unit tests to test the json payload
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::
But the message is successfully sent and appears where I expect it within my MS Teams channel:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.