Skip to content

louis70109/line-notify-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Actions - LINE Notify

Actions Status

The line-notify-action can send notification messages with LINE by GitHub Action.

Let's get started it!

Usage

Text message

- name: send default message
  uses: louis70109/line-notify-action@master
  with:
    token: ${{ secrets.LINE_NOTIFY_TOKEN }}
    message: 'LINE Notify test message'

Text message and Sticker

- name: send message with sticker
  uses: louis70109/line-notify-action@master
  with:
    token: ${{ secrets.LINE_NOTIFY_TOKEN }}
    sticker_id: 1
    package_id: 1

Text message and Image (by URL)

- name: send message with image url
  uses: louis70109/line-notify-action@master
  with:
    token: ${{ secrets.LINE_NOTIFY_TOKEN }}
    message: |
      ${{github.repository}} send image test.
    image_url: 'https://raw.githubusercontent.com/louis70109/line-notify-action/master/tests/image1.png'

Text message and Image (by local file)

- name: send message with image file
  uses: louis70109/line-notify-action@master
  with:
    token: ${{ secrets.LINE_NOTIFY_TOKEN }}
    message: |
      ${{github.repository}} send image file.
    image_file: tests/sally.png

Get LINE Notify access_token

  • You can refer the Flask-LINE-notify repository One-Click-Deployment to create your testing website on Heroku.
  • Will see the access_token when you binding LINE Notify.
  • Copy access_token into GitHub repository ➡️ Secrets ➡️ LINE_NOTIFY_TOKEN environment property.
  • Then copy the following yaml into your workflow.
- name: LINE Notify Message
  uses: louis70109/[email protected]

License

MIT