Skip to content

Commit 2a12dc3

Browse files
committed
Update linters
1 parent 2c0729a commit 2a12dc3

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

action.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
# limitations under the License.
1414

1515
name: 'send-google-chat-webhhook'
16-
description: "send message to your google chat workspace"
16+
description: 'Send message to your google chat workspace'
1717
inputs:
18-
webhook_url:
19-
description: "chat space webhook url"
18+
webhook_url:
19+
description: |-
20+
Chat space webhook url
2021
required: true
2122
mention:
22-
description: "mention people or not, format <users/user_id>"
23+
description: |-
24+
Mention people or not, format <users/user_id>
2325
default: '<users/all>'
2426
required: false
2527

@@ -29,10 +31,10 @@ runs:
2931
- name: 'download binary'
3032
shell: 'bash'
3133
env:
32-
BINARY_NAME: "send-google-chat-webhook"
34+
BINARY_NAME: 'send-google-chat-webhook'
3335
# manully update VERSION after each release
3436
# VERSION should not contain v.
35-
VERSION: "0.0.4"
37+
VERSION: '0.0.4'
3638
run: |-
3739
case "${RUNNER_OS}" in
3840
"Linux")
@@ -56,14 +58,16 @@ runs:
5658
5759
curl -LOv "https://github.com/google-github-actions/send-google-chat-webhook/releases/download/v${{ env.VERSION }}/send-google-chat-webhook_${{ env.VERSION }}_${CURL_OS}_${CURL_ARCH}.tar.gz"
5860
tar xzf ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${CURL_OS}_${CURL_ARCH}.tar.gz
59-
- name: "send message via cli"
61+
62+
- name: 'send message via cli'
6063
shell: 'bash'
61-
run: |
62-
./send-google-chat-webhook chat workflownotification --webhook-url="${{ inputs.webhook_url }}"
6364
env:
64-
GITHUB_CONTEXT: ${{ toJson(github) }}
65-
JOB_CONTEXT: ${{ toJson(job) }}
66-
STEPS_CONTEXT: ${{ toJson(steps) }}
67-
RUNNER_CONTEXT: ${{ toJson(runner) }}
68-
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
69-
MATRIX_CONTEXT: ${{ toJson(matrix) }}
65+
GITHUB_CONTEXT: '${{ toJson(github) }}'
66+
JOB_CONTEXT: '${{ toJson(job) }}'
67+
STEPS_CONTEXT: '${{ toJson(steps) }}'
68+
RUNNER_CONTEXT: '${{ toJson(runner) }}'
69+
STRATEGY_CONTEXT: '${{ toJson(strategy) }}'
70+
MATRIX_CONTEXT: '${{ toJson(matrix) }}'
71+
WEBHOOK_URL: '${{ inputs.webhook_url }}'
72+
run: |-
73+
./send-google-chat-webhook chat workflownotification --webhook-url="${WEBHOOK_URL}"

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"build": "echo \"No build required for composite action\"",
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9+
"engines": {
10+
"node": "20.x",
11+
"npm": "10.x"
12+
},
913
"repository": {
1014
"type": "git",
1115
"url": "git+https://github.com/google-github-actions/send-google-chat-webhook.git"

0 commit comments

Comments
 (0)