Giter Site home page Giter Site logo

action-notify-rocketchat's Introduction

action-notify-rocketChat

Send notify message to RocketChat

Args

  • ROCKET_CHAT_URL (required) : Rocket chat server
  • message (required)
  • ROCKET_CHAT_HOOK (optional): Group hook for group messages
  • ROCKET_CHAT_USER (required for private messages): User for authenticate
  • ROCKET_CHAT_PASS (required for private messages): Password for authenticate
  • MESSAGE_TO (required for private messages): ;essage recipient
  • BOT_NAME: Sender's alias
  • BOT_AVATAR : Sender's avatar

๐Ÿš€ Usage

Create a file inside the .github/workflows directory and paste:

Message to a group.

name: Test group message

on:
  pull_request:
    types: 
      - opened

jobs:
  test:
    runs-on: ubuntu-latest
    name: Test
    steps:
      - uses: actions/checkout@v1
      - uses: ./
        with:
          message: ${{ github.event.pull_request.html_url }}
          ROCKET_CHAT_HOOK: ${{ secrets.ROCKET_CHAT_HOOK }}
          ROCKET_CHAT_URL: ${{ secrets.ROCKET_CHAT_HOST }}
          BOT_NAME: 'Harold'
          BOT_AVATAR: 'https://media.metrolatam.com/2019/10/16/18ps27-638137169a2d73f9f63481c115a7f092.jpg'

Message to an user.

name: Test private message

on:
  - push

jobs:
  test:
    runs-on: ubuntu-latest
    name: Test
    steps:
      - uses: actions/checkout@v1
      - uses: ./
        with:
          message: 'Test'
          ROCKET_CHAT_USER: ${{ secrets.ROCKET_CHAT_USER }}
          ROCKET_CHAT_PASS: ${{ secrets.ROCKET_CHAT_PASS }}
          ROCKET_CHAT_URL: ${{ secrets.ROCKET_CHAT_HOST }}
          MESSAGE_TO: daniel.lopez
          BOT_NAME: 'Pingu'
          BOT_AVATAR: 'https://i.pinimg.com/originals/bd/5c/46/bd5c46c4c1579c56c60920301ea3e642.png'

action-notify-rocketchat's People

Contributors

danil16 avatar

Stargazers

Evgeny Blokhin avatar Mutaz Awad avatar

Watchers

 avatar  avatar

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.