2021-05-04 21:08:14 +00:00
|
|
|
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:
|
2021-08-07 06:51:34 +00:00
|
|
|
node-version: '14'
|
2021-05-04 21:08:14 +00:00
|
|
|
- run: npm i twit
|
|
|
|
- run: |
|
2021-08-15 18:50:12 +00:00
|
|
|
node ${{ github.workspace }}/Meta/tweet-commits.js << 'EOF'
|
2021-05-04 21:08:14 +00:00
|
|
|
${{ 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 }}
|