Skip to content

Github action for pushing LINE message using LINE-Notify

License

Notifications You must be signed in to change notification settings

raeperd/line-in-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

LINE-in-action

build-and-test Maintainability Rating Reliability Rating Security Rating Vulnerabilities
Lines of Code Coverage

Github action for pushing LINE message using LINE-Notify API

Quick Preview

On your github action yml files,

runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: raeperd/line-in-action@v1.0
        with:
          token: ${{ secrets.LINE_NOTIFY_TOKEN }}
          message: Action run by ${{ github.actor }}
          notificationDisabled: false # optional
          stickerPackageId: 1         # optional
          stickerId: 2                # optional

sample-message

  • For GitHub environment variables avaliable in GitHub Docs
  • For Sticker available on LINE checkout Stickers
    • But this documentation is not valid for now, I found only stickerPackageId = 1, and stickerId = 1..15 is valid

Getting started

What you needs

  1. LINE Notify Token
  2. A little knowledge about Github action

Generate LINE Notify Tokens

Go to LINE Notfiy Web Page then you can get token by login LINE ID & passwords.
For more detailed descriptions, Offical LINE Notify Documents might be helpful

And you "must" pass your TOKEN to action bia repository secret. For more detail, Check Github action secret out

Features

  1. Send Notifty message
  2. Append action url to message so that you can quickly navigate to action page
  3. Simple stupid Code as you expect with resonalbe amount of tests

LISENCE

The MIT License (MIT)

REFERENCE