Testing out twitter together

This commit is contained in:
R Tyler Croy 2021-02-17 21:41:40 -08:00
parent 093bfd5162
commit 50b8bf5221
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
2 changed files with 28 additions and 0 deletions

27
.github/workflows/twitter.yml vendored Normal file
View File

@ -0,0 +1,27 @@
---
on: [push, pull_request]
name: Twitter, together!
jobs:
preview:
name: Preview
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' && github.ref == 'refs/heads/main'
steps:
- name: checkout main
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 }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}

View File

@ -0,0 +1 @@
This is a test