From 233fbc441f27fab159c1f6a57e2273074913f8d9 Mon Sep 17 00:00:00 2001 From: D Ther Date: Sun, 25 Oct 2020 01:33:59 +0630 Subject: [PATCH] fix 0.5 --- README.md | 2 +- main.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6ccfd6d..4f486d3 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Chat Setup - uses: DTherHtun/google-chat-action@v0.5 + uses: DTherHtun/google-chat-action@v0.6 with: project: ${{ github.repository }} commit: ${{ github.sha }} diff --git a/main.go b/main.go index d5984f9..a4949da 100644 --- a/main.go +++ b/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": {