Skip to content

Tweet to Twitter

Actions
Makes a twitter tweet
v1.0.1
Latest
Star (20)

Tags

 (2)

tweet-action

Github Action for posting a twitter tweet

Getting started

  1. Register as a twitter app developer in here
  2. Create new twitter application in here
  3. Use app's credentials in github actions.

Inputs

api_key

Required Twitter api key

api_key_secret

Required Twitter api key secret

api_key_secret

Required Twitter Consumer access token.

api_key_secret

Required Twitter Consumer access token secret.

status

Required Status to be published to twitter.

Outputs

id

ID of the created tweet.

Example usage

name: publish-to-twitter
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: infraway/tweet-action@v1
        with:
          status: Tweeted from Github Actions
          api_key: ${{ secrets.TWITTER_API_KEY }}
          api_key_secret: ${{ secrets.TWITTER_API_KEY_SECRET }}
          access_token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
          access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

Tweet to Twitter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Makes a twitter tweet
v1.0.1
Latest

Tags

 (2)

Tweet to Twitter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.