minikube/.github/workflows/twitter-bot.yml

20 lines
674 B
YAML
Raw Normal View History

2021-07-02 22:57:56 +00:00
name: "Tweet the release"
on:
workflow_dispatch:
2021-07-02 23:04:17 +00:00
push:
tags:
- 'v*'
2021-07-02 22:57:56 +00:00
release:
2021-07-02 23:04:17 +00:00
types: [published]
2021-07-02 22:57:56 +00:00
jobs:
twitter-release:
2021-09-28 03:01:27 +00:00
runs-on: ubuntu-20.04
2021-07-02 22:57:56 +00:00
steps:
- uses: ethomson/send-tweet-action@288f9339e0412e3038dce350e0da5ecdf12133a6 # v1
2021-07-02 22:57:56 +00:00
with:
status: "minikube ${GITHUB_REF_NAME} was just released! Check it out: https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md"
2021-07-02 22:57:56 +00:00
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 }}