Giter Site home page Giter Site logo

louis70109 / line-notify-action Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 1.0 521 KB

LINE Notify with GitHub Actions

Home Page: https://github.com/louis70109/line-notify-action

License: MIT License

Dockerfile 11.69% Shell 13.30% Python 75.01%
line line-notify github github-actions

line-notify-action's Introduction

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

line-notify-action's People

Contributors

louis70109 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pataweepr

line-notify-action's Issues

how to add newline in message

Produce Steps
1.add this to yml

    - name: notify message while success
      uses: louis70109/line-notify-action@master
      if : steps.buildAction.outcome == 'success'
      with:
        token: ${{ secrets.LINE_NOTIFY_TOKEN }}
        message: '\n WorkSpaceName:${{ val1 }} \n Version:${{val2 }} \n Message:Github build success'

2.The Result :
image


Except Result :
'\n' cant create newline in line app ?

[BotName]
WorkSpaceName:SCHOOL.Works
Version:513.0.0
Message:
Github get an error while building stage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.