Forked from @delivery-much/actions-chat
Messages are sent by chat.js and defined in messages.js.
We use Axios as HTTP client and the basic instance is defined in axios.js.
Required Your Google Chat Webhook URL. You can find it in "Configure Webhooks" option in Chat rooms.
- Create a file
chat-pull-request.yml
in.github/workflows/
directory with the following content:
name: chat-pull-request
on:
pull_request:
types: [opened, reopened]
jobs:
chat:
runs-on: ubuntu-latest
steps:
- uses: delivery-much/actions-chat@v1
with:
url: ${{ secrets.GOOGLE_CHAT_PULL_REQUEST_WEBHOOK_URL }}
- Create a file
chat-release.yml
in.github/workflows/
directory with the following content:
name: chat-release
on:
release:
types: [created]
jobs:
chat:
runs-on: ubuntu-latest
steps:
- uses: delivery-much/actions-chat@v1
with:
url: ${{ secrets.GOOGLE_CHAT_RELEASE_WEBHOOK_URL }}