forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 7
26 lines (22 loc) · 840 Bytes
/
twitter.yml
File metadata and controls
26 lines (22 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Tweet the URL of a commit on @sklearn_commits whenever a push event
# happens on the main branch
name: Twitter Push Notification
on:
push:
branches:
- main
jobs:
tweet:
name: Twitter Notification
runs-on: ubuntu-latest
steps:
- name: Tweet URL of last commit as @sklearn_commits
if: github.repository == 'scikit-learn/scikit-learn'
uses: docker://thomasjpfan/twitter-action:0.3
with:
args: "-message \"https://github.com/scikit-learn/scikit-learn/commit/${{ github.sha }}\""
env:
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}