Skip to content

This action allows to make a tweet instantly or scheduled

License

Notifications You must be signed in to change notification settings

InfraWay/tweet-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }}

About

This action allows to make a tweet instantly or scheduled

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published