mattermost / action-mattermost-notify Goto Github PK
View Code? Open in Web Editor NEWGitHub Action for sending a notification to a Mattermost channel
Home Page: https://github.com/mattermost/action-mattermost-notify
GitHub Action for sending a notification to a Mattermost channel
Home Page: https://github.com/mattermost/action-mattermost-notify
You need generate a mattermost.json file in a step before. For the message format you can check the Mattermost documentation
can we use action for commercial? could you upload it?
Build container for action use: '/runner/_work/_actions/mattermost/action-mattermost-notify/master/Dockerfile'.
/usr/local/bin/docker build -t 60e226:220ad6d212c0422aa68464ae940599ec -f "/runner/_work/_actions/mattermost/action-mattermost-notify/master/Dockerfile" "/runner/_work/_actions/mattermost/action-mattermost-notify/master"
Sending build context to Docker daemon 65.02kB
Step 1/11 : FROM golang:1.14
1.14: Pulling from library/golang
0ecb575e629c: Pulling fs layer
7467d1831b69: Pulling fs layer
feab2c490a3c: Pulling fs layer
f15a0f46f8c3: Pulling fs layer
1517911a35d7: Pulling fs layer
48bbd1746d63: Pulling fs layer
944903612fdd: Pulling fs layer
f15a0f46f8c3: Waiting
1517911a35d7: Waiting
48bbd1746d63: Waiting
944903612fdd: Waiting
feab2c490a3c: Download complete
7467d1831b69: Verifying Checksum
7467d1831b69: Download complete
0ecb575e629c: Download complete
f15a0f46f8c3: Verifying Checksum
f15a0f46f8c3: Download complete
1517911a35d7: Verifying Checksum
1517911a35d7: Download complete
944903612fdd: Verifying Checksum
944903612fdd: Download complete
48bbd1746d63: Verifying Checksum
48bbd1746d63: Download complete
0ecb575e629c: Pull complete
7467d1831b69: Pull complete
feab2c490a3c: Pull complete
f15a0f46f8c3: Pull complete
1517911a35d7: Pull complete
48bbd1746d63: Pull complete
944903612fdd: Pull complete
Digest: sha256:1a7173b5b9a3af3e29a5837e0b2027e1c438fd1b83bbee8f221355087ad416d6
Status: Downloaded newer image for golang:1.14
---> 21a5635903d6
Step 2/11 : LABEL version="1.0.2"
---> Running in b9b3cc309110
Removing intermediate container b9b3cc309110
---> 4604fc9d1b48
Step 3/11 : LABEL maintainer="mattermost"
---> Running in cf4776f39ef1
Removing intermediate container cf4776f39ef1
---> afb1f72e14f2
Step 4/11 : LABEL repository="http://github.com/mattermost/action-mattermost-notify"
---> Running in 3390a9a8b70f
Removing intermediate container 3390a9a8b70f
---> 39bbf90f4e7c
Step 5/11 : LABEL homepage="http://github.com/mattermost/action-mattermost-notify"
---> Running in c086fe952d34
Removing intermediate container c086fe952d34
---> 240233c1e2a0
Step 6/11 : LABEL "com.github.actions.name"="Mattermost"
---> Running in 27697b576da7
Removing intermediate container 27697b576da7
---> 4c7b6536b9e7
Step 7/11 : LABEL "com.github.actions.description"="Send a Mattermost message"
---> Running in f8eedaedd567
Removing intermediate container f8eedaedd567
---> b0bb48b625f5
Step 8/11 : LABEL "com.github.actions.icon"="send"
---> Running in a8e6912316f3
Removing intermediate container a8e6912316f3
---> 8a88f42670db
Step 9/11 : LABEL "com.github.actions.color"="blue"
---> Running in 4add31482281
Removing intermediate container 4add31482281
---> a3584aa9cdf6
Step 10/11 : RUN go get github.com/mattermost/action-mattermost-notify
---> Running in 44feb92d3171
package github.com/mattermost/mattermost-server/v5/model: cannot find package "github.com/mattermost/mattermost-server/v5/model" in any of:
/usr/local/go/src/github.com/mattermost/mattermost-server/v5/model (from $GOROOT)
/go/src/github.com/mattermost/mattermost-server/v5/model (from $GOPATH)
The command '/bin/sh -c go get github.com/mattermost/action-mattermost-notify' returned a non-zero code: 1
It would be nice if we could pass the message (and other inputs) from arguments rather than a prior step/env-vars
https://help.github.com/en/actions/building-actions/creating-a-docker-container-action
Starting this morning, I'm getting a message when trying to use this action that "MATTERMOST_WEBHOOK_URL" is not set, but it is set in the environment where the action is called. This was previously working as of Friday last week.
Run mattermost/action-mattermost-notify@master
with:
PAYLOAD_FILENAME: mattermost.json
env:
MATTERMOST_WEBHOOK_URL: [redacted]
MATTERMOST_CHANNEL: devops
MATTERMOST_USERNAME: github
Error: Input required and not supplied: MATTERMOST_WEBHOOK_URL
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.