add bot to tweet the release

pull/11895/head
Medya Gh 2021-07-02 18:57:56 -04:00
parent 3194ce3b17
commit 635c7e7314
1 changed files with 15 additions and 0 deletions

15
.github/workflows/twitter-bot.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: "Tweet the release"
on:
release:
types: [released]
jobs:
twitter-release:
runs-on: ubuntu-latest
steps:
- uses: ethomson/send-tweet-action@v1
with:
status: "A new minikube version just released ! check it out https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md"
consumer-key: ${{ secrets.TWITTER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}