Giter Club home page Giter Club logo

github-action-notify-twitter's Introduction

Github Action to send Twitter notifications

CI

GitHub action that can send a custom message to a Twitter account.

Usage

Configure this action in your workflows providing the following inputs described below. The Twitter tokens can be obtained from the Twitter Developer Portal under your project.

Inputs

input required description
message yes Message to post to Twitter.
twitter-app-key yes Consumer API key, available in the "Keys and tokens" section of your application in the Twitter Developer site.
twitter-app-secret yes Consumer API secret key, available in the "Keys and tokens" section of your application in the Twitter Developer site.
twitter-access-token yes Application access token, available in the "Keys and tokens" section of your application in the Twitter Developer site.
twitter-access-token-secret yes Application access token secret, available in the "Keys and tokens" section of your application in the Twitter Developer site.

Example usage

The example below runs when the release is published and also allows to trigger the action manually.

name: Notify twitter

on:
  workflow_dispatch:
  release:
    types: [published]

jobs:
  setup:
    runs-on: ubuntu-latest
    steps:
      - uses: nearform-actions/github-action-notify-twitter@master
        with:
          message: |
            ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} has been released. Check out the release notes: ${{ github.event.release.html_url }}
          twitter-app-key: ${{ secrets.TWITTER_APP_KEY }}
          twitter-app-secret: ${{ secrets.TWITTER_APP_SECRET }}
          twitter-access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
          twitter-access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

github-action-notify-twitter's People

Contributors

dependabot[bot] avatar optic-release-automation[bot] avatar radomird avatar simoneb avatar gregoryduckworth avatar melkornemesis avatar bredikhin avatar anapaulalemos avatar davideroffo avatar grantmorrison avatar guilhermelimak avatar marco-ippolito avatar ilteoood avatar iloveitaly avatar sameer-coder avatar washingtonsoares 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.