https://github.com/devigned/go-twitter-action
Golang based GitHub Action for sending out a tweet in your build
https://github.com/devigned/go-twitter-action
Last synced: 12 months ago
JSON representation
Golang based GitHub Action for sending out a tweet in your build
- Host: GitHub
- URL: https://github.com/devigned/go-twitter-action
- Owner: devigned
- License: mit
- Created: 2020-11-05T17:34:46.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-07T17:35:09.000Z (over 5 years ago)
- Last Synced: 2025-04-24T04:15:19.546Z (about 1 year ago)
- Language: Makefile
- Size: 136 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://developer.twitter.com/en/portal/projects-and-apps)
### `apiKeySecret`
**Requried** The API key secret under Consumer Keys in the [Twitter developer portal](https://developer.twitter.com/en/portal/projects-and-apps)
### `accessToken`
**Required** The access token under Authentication Tokens in the [Twitter developer portal](https://developer.twitter.com/en/portal/projects-and-apps)
### `accessTokenSecret`
**Required** The access token secret under Authentications Tokens in the [Twitter developer portal](https://developer.twitter.com/en/portal/projects-and-apps)
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.

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