Skip to content

Commit

Permalink
docs: add documentation for line messanger
Browse files Browse the repository at this point in the history
  • Loading branch information
kha7iq committed Jun 4, 2021
1 parent 3cfd2b2 commit 29e664a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ platforms.

- *Discord*
- *Email*
- *Line*
- *Mastodon*
- *Mattermost*
- *Microsoft Teams*
Expand Down Expand Up @@ -164,7 +165,9 @@ COMMANDS:
mattermost Send message to mattermost
pushbullet Send message to pushbullet
twillio Send sms via twillio
zulip Send message to zulip
mastodon Set status message for mastodon
line Send message to line messenger
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
Expand Down
49 changes: 48 additions & 1 deletion docs/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ jobs:
## Zulip
Mastodon uses application token to authorize and set status.
Zulip uses bot email and token for authentication, and sends messages to particular topic.
```bash
pingme zulip
Expand Down Expand Up @@ -564,6 +564,53 @@ jobs:
| ZULIP_TOPIC | "" |
| ZULIP_MESSAGE | "" |
## Line
Line uses chanel secret and token for authentication, and sends messages.
```bash
pingme line
--secret 'secretxxx' \
--token '12345567' \
--receivers 'ab1234545xx' \
--msg 'content of message'
```

- GitHub Action

```yaml
on: [push]

jobs:
pingme-job:
runs-on: ubuntu-latest
name: PingMe
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Ping me On
uses: kha7iq/pingme-action@v1
env:
LINE_SECRET: ${{ secrets.LINE_SECRET }}
LINE_TOKEN: ${{ secrets.LINE_TOKEN }}
LINE_RECEIVER_IDS: 'ab1235xxx8'
LINE_MSG_TITLE: 'Reference: ${{ github.ref }}'
LINE_MESSAGE: 'Event is triggered by ${{ github.event_name }}'

with:
service: line
```
- **Variables**
| Variables | Default Value |
| -------------------------- | :----------------: |
| LINE_SECRET | "" |
| LINE_TOKEN | "" |
| LINE_RECEIVER_IDS | "" |
| LINE_MSG_TITLE | "" |
| LINE_MESSAGE | "" |
## Email
Expand Down

0 comments on commit 29e664a

Please sign in to comment.