Giter Site home page Giter Site logo

mexicanoviva / action-discord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from papayaone/action-discord

0.0 2.0 0.0 113 KB

๐Ÿš€ GitHub Action that sends a Discord message.

Home Page: https://github.com/marketplace/actions/actions-for-discord

License: MIT License

Dockerfile 22.83% JavaScript 77.17%

action-discord's Introduction

๐Ÿš€ Discord for GitHub Actions

Build Status

Sends a Discord notification message. Simple as that. Supports all workflow event types by using the Discord GitHub webhooks.

Appearance on Discord :

Discord message

This GitHub action is part of a list of Actions that are located in an other repo. Feel free to check it out : https://github.com/Ilshidur/actions.


Usage

- name: Discord notification
  env:
    DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
  uses: Ilshidur/action-discord@master
  with:
    args: 'The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed.'

NOTICE : for stability purposes, it is recommended to use the action with an explicit commit SHA-1 :

uses = "Ilshidur/actions/discord@4420243" (=> link to the commits list : https://github.com/Ilshidur/action-discord/commits/master)

Arguments

By default, the GitHub action will send a notificaction with the event informations. Providing the arguments will override the message.

Environment variables can be interpolated in the message using brackets ({{ and }}) :

e.g.: Action called : {{ GITHUB_ACTION }}

Event Payload data can also be interpolated in the message using brackets ({{ and }}) with the EVENT_PAYLOAD variable.

e.g.: Action called: {{ GITHUB_ACTION }} as {{ EVENT_PAYLOAD.pull_request.id }}

See the event types for valid payload informations.

Examples

  • args = "Hello, beautiful ! I ran a GitHub Actions for you <3"
  • args = "I showed you my commit. Please respond."

Environment variables

Alternatives

Because open source is about everyone :

https://github.com/marketplace/actions/discord-message-notify

TODO


Don't forget to ๐ŸŒŸ Star ๐ŸŒŸ the repo if you like this GitHub Action !
Your feedback is appreciated

action-discord's People

Contributors

ilshidur avatar renovate-bot 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.