Skip to content

Golang based GitHub Action for sending out a tweet in your build

License

Notifications You must be signed in to change notification settings

devigned/go-twitter-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

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Twitter GitHub Action

Golang based GitHub Action for sending out a tweet in your build. Why? Because sometimes you want to give folks on your repo access to send out a tweet as new stuff is released.

Inputs

message

Required The tweet you would like to send

apiKey

Required The API key under Consumer Keys in the Twitter developer portal

apiKeySecret

Requried The API key secret under Consumer Keys in the Twitter developer portal

accessToken

Required The access token under Authentication Tokens in the Twitter developer portal

accessTokenSecret

Required The access token secret under Authentications Tokens in the Twitter developer portal

The developer portal area for keys and secrets look like the below image when this was written. All the input names were selected to align with the UI.

Twitter Developer Portal keys and secrets UI

Outputs

errorMessage

If there was an error, return it to you.

Example usage

- uses: devigned/go-twitter-action@v1
  with:
    message: "Hey folks we just release a new version of ACME widgets!"
    apiKey: ${{ secrets.API_KEY }}
    apiKeySecret: ${{ secrets.API_KEY_SECRET }}
    accessToken: ${{ secrets.ACCESS_TOKEN }}
    accessTokenSecret: ${{ secrets.ACCESS_TOKEN_SECRET }}