forked from sofa-framework/sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 2.02 KB
/
post-agenda-sofa-dev-meeting.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Post - SOFA dev meeting agenda/reminder
on:
schedule:
- cron: '30 8 * * 1' # 9:30 am CET every Monday
- cron: '30 7 * * 3' # 8:00 am CET on Wednesdays
env:
TZ: "Europe/Paris"
jobs:
run:
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 }}
# Monday message : agenda
- name: Run script post-discord-message.py
if: github.event.schedule == '30 8 * * 1'
run: |
python scripts/discord/post-discord-message.py
working-directory: ${{ github.workspace }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_MAIN_WEBHOOK_URL }}
MESSAGE : ":sunrise: Morning, dear SOFA community! Next Wednesday takes place the weekly SOFA dev meeting:\n**_Any specific topic to share or to discuss?_** If so, please reply in this thread :speech_balloon: *Remember you can use the tag \"pr: dev meeting topic\" for your PRs*"
BOT_NAME: "Meeting reminder"
EMBEDS_TITLE: "Label \"pr: dev-meeting topic\""
EMBEDS_URL: "https://github.com/sofa-framework/sofa/labels/pr%3A%20dev%20meeting%20topic"
EMBEDS_DESCRIPTION: ""
# Wednesday message : get ready
- name: Run script post-discord-message.py
if: github.event.schedule == '30 7 * * 3'
run: |
python scripts/discord/post-discord-message.py
working-directory: ${{ github.workspace }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_MAIN_WEBHOOK_URL }}
MESSAGE: "SOFA dev meeting is about to get started :tv: See you online!"
BOT_NAME: "Meeting reminder"
EMBEDS_TITLE: "SOFA dev visio link"
EMBEDS_URL: "https://www.sofa-framework.org/sofa-dev-meeting"
EMBEDS_DESCRIPTION: ""