This commit is contained in:
D Ther 2020-10-25 01:33:59 +06:30
parent e4ff95a712
commit 233fbc441f
No known key found for this signature in database
GPG key ID: 4729D840D81DC783
2 changed files with 7 additions and 7 deletions

12
main.go
View file

@ -10,23 +10,23 @@ import (
func main() {
project := githubactions.GetInput("project")
if msg == "" {
if project == "" {
githubactions.Fatalf("Missing input 'project'")
}
commit := githubactions.GetInput("commit")
if msg == "" {
if commit == "" {
githubactions.Fatalf("Missing input 'commit'")
}
branch := githubactions.GetInput("branch")
if msg == "" {
if branch == "" {
githubactions.Fatalf("Missing input 'branch'")
}
status := githubactions.GetInput("status")
if msg == "" {
if status == "" {
githubactions.Fatalf("Missing input 'status'")
}
actionid := githubactions.GetInput("actionid")
if msg == "" {
if actionid == "" {
githubactions.Fatalf("Missing input 'actionid'")
}
webhook := githubactions.GetInput("webhook")
@ -35,7 +35,7 @@ func main() {
}
fmt.Println("URL:> ", webhook)
data = `{
data := `{
"cards": [
{
"header": {