forked from sofa-framework/sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 1.05 KB
/
post-github-activity-star.yml
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
27
28
29
30
31
32
33
34
name: Post - Github activity (stars)
on:
watch:
types: [started]
jobs:
watch-star:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'sofa-framework' }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install python-graphql-client
pip install python-dateutil
pip install requests
working-directory: ${{ github.workspace }}
# Star/watch related event
- name: Run script post-discord-message.py for stars
run: |
python scripts/discord/post-discord-message.py
working-directory: ${{ github.workspace }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_MAIN_WEBHOOK_URL }}
MESSAGE: ":fire: :fire: Come ON :fire: :fire: \nOne new :star: for SOFA on Github from ${{github.event.sender.login}} (${{github.event.repository.stargazers_count}})!"
BOT_NAME: "SOFA Github bot"
EMBEDS_TITLE: ""
EMBEDS_URL: ""
EMBEDS_DESCRIPTION: ""