Github action for pushing LINE message using LINE-Notify API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: raeperd/[email protected]
with:
token: ${{ secrets.LINE_NOTIFY_TOKEN }}
message: Action run by ${{ github.actor }}
notificationDisabled: false # optional
stickerPackageId: 1 # optional
stickerId: 2 # optional
- 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
- LINE Notify Token
- A little knowledge about Github action
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
- Send Notifty message
- Append action url to message so that you can quickly navigate to action page
- Simple stupid Code as you expect with resonalbe amount of tests
The MIT License (MIT)