1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 08:47:36 +00:00

Meta: Add action to tweet each commit on push

This commit is contained in:
Idan Horowitz 2021-05-05 00:08:14 +03:00 committed by Andreas Kling
parent 2156c728cd
commit b9c367e13b
2 changed files with 53 additions and 0 deletions

24
.github/workflows/twitter.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Twitter notifications
on: [ push ]
jobs:
notify_twitter:
runs-on: ubuntu-20.04
if: always() && github.repository == 'SerenityOS/serenity' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node_version: '14'
- run: npm i twit
- run: |
node ${{ github.workspace }}/Meta/tweet-commits.js << EOF
${{ toJSON(github.event) }}
EOF
env:
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }}
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}