Skip to content

Commit

Permalink
Update readme, change version number, preparing for next release. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
sailorlqh authored Feb 1, 2024
1 parent fb394d1 commit 76f0cca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
steps:
# ...

- id: 'notify google chat'
uses: 'google-github-actions/sent-google-chat-webhook@v0.0.1'
- id: 'notify_google_chat'
uses: 'google-github-actions/send-google-chat-webhook@v0.0.2'
with:
webhook_url: '${{ secrets.WEBHOOK_URL }}'
mention: "<users/all>"
Expand All @@ -38,7 +38,7 @@ You can customize the condition for when you want this action is called..
```yaml
- id: 'notify google chat'
if: ${{ inputs.fail_intentionally }}
uses: 'google-github-actions/sent-google-chat-webhook@v0.0.1'
uses: 'google-github-actions/send-google-chat-webhook@v0.0.2'
with:
webhook_url: '${{ secrets.WEBHOOK_URL }}'
mention: "<users/all>"
Expand All @@ -52,4 +52,4 @@ Helpful references:
* [Method: spaces.messages.create](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages/create)
* [Cards v2](https://developers.google.com/chat/api/reference/rest/v1/cards)
* abcxyz
* [abcxyz/pkg/cli](https://pkg.go.dev/github.com/abcxyz/pkg/cli)
* [abcxyz/pkg/cli](https://pkg.go.dev/github.com/abcxyz/pkg/cli)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
BINARY_NAME: "send-google-chat-webhook"
# manully update VERSION after each release
# VERSION should not contain v.
VERSION: "0.0.1"
VERSION: "0.0.2"
run: |-
case "${RUNNER_OS}" in
"Linux")
Expand Down
2 changes: 0 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ func generateRequestBody(m *messageBodyContent) ([]byte, error) {
},
}

fmt.Println(jsonData)

res, err := json.Marshal(jsonData)
if err != nil {
return nil, fmt.Errorf("error marshal jsonData: %w", err)
Expand Down

0 comments on commit 76f0cca

Please sign in to comment.