fix 0.5
This commit is contained in:
parent
e4ff95a712
commit
233fbc441f
2 changed files with 7 additions and 7 deletions
12
main.go
12
main.go
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue