Testing out twitter together
This commit is contained in:
parent
093bfd5162
commit
50b8bf5221
27
.github/workflows/twitter.yml
vendored
Normal file
27
.github/workflows/twitter.yml
vendored
Normal 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 }}
|
1
tweets/2021/02/17/1.tweet
Normal file
1
tweets/2021/02/17/1.tweet
Normal file
@ -0,0 +1 @@
|
||||
This is a test
|
Loading…
Reference in New Issue
Block a user