I’ve just published a new CI code snippet, which helps to make a tweet directly from Github Actions.
The good question - Why I need tweet-action? Here are several use cases where it can be applied:
Read and Write
TWITTER_API_KEY="API key"
TWITTER_API_KEY_SECRET="API secret key"
TWITTER_ACCESS_TOKEN="Access token"
TWITTER_ACCESS_TOKEN_SECRET="Access token secret"
name: Tweeting from Gtihub Actions
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: infraway/tweet-[email protected]
with:
status: "Hello World, delivered 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 }}
Find more useful DevOps automation tools at:
Of course, all the source code is open-sourced.
Any feedback, contribution, or help is highly appreciated. Thanks for your time and have a nice coding!