forked from microsoft/msticpy
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (21 loc) · 837 Bytes
/
tweet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Tweet about PR
on:
pull_request:
branches:
- main
types: [closed]
jobs:
tweet:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- uses: ethomson/send-tweet-action@v1
with:
status: "🚨 #MSTICPy has just merged a new PR to main!\n\r
${{ github.event.pull_request.user.login }} added the PR - ${{ github.event.pull_request.title }}\n\r
https://github.com/microsoft/msticpy/pull/${{ github.event.pull_request.number }}\n\r
#python #MSTIC #infosec"
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}