1313# limitations under the License.
1414
1515name : ' send-google-chat-webhhook'
16- description : " send message to your google chat workspace"
16+ description : ' Send message to your google chat workspace'
1717inputs :
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}"
0 commit comments