Skip to content

Commit 0a96373

Browse files
Setting up 'send tweet' action.
1 parent d15ccda commit 0a96373

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/send-tweet.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Send a Tweet"
2+
on: [push]
3+
jobs:
4+
tweet:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: ethomson/send-tweet-action@v1
8+
if: github.event_name == 'push' && contains( join(github.event.commits.*.message), 'New post')
9+
with:
10+
status: ${{ join(github.event.commits.*.message) }}
11+
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
12+
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
13+
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
14+
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

0 commit comments

Comments
 (0)