chore(tweet): recurring tweet about discussion tools ideas in our dis… #2858
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow enables us to tweet together from the official AsyncAPI account :heart: | |
# Learn more from TWEET_TOGETHER instruction | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, reopened, synchronize, edited, ready_for_review] | |
name: Twitter, together on AsyncAPI account! | |
jobs: | |
test_tweet: | |
name: Test and Preview Tweet | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: gr2m/twitter-together@v1.x | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
tweet: | |
name: Tweet | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Tweet | |
uses: gr2m/twitter-together@v1.x | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} | |
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | |
TWITTER_API_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} | |
TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_CONSUMER_SECRET }} |