docs: update readme

This commit is contained in:
Bo-Yi Wu
2019-09-29 14:18:21 +08:00
parent b535a89bc8
commit 06cc7371ce
+16 -7
View File
@@ -11,13 +11,22 @@
Send custom message and see the custom variable as blow. Send custom message and see the custom variable as blow.
```yml ```yml
- name: send custom message name: telegram message
uses: appleboy/telegram-action@master on: [push]
env: jobs:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }} build:
with: name: Build
args: The ${{ github.event_name }} event triggered first step. runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: send custom message with args
uses: appleboy/telegram-action@master
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
with:
args: The ${{ github.event_name }} event triggered first step.
``` ```
Remove `args` to send the default message. Remove `args` to send the default message.