Skip to content

Commit

Permalink
add warning message before SOFA dev meeting + cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Jan 21, 2024
1 parent d1603c6 commit a256c13
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/post-agenda-sofa-dev-meeting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Post inquiring info for SOFA dev meeting
on:
schedule:
- cron: '30 7 * * 1' # 9:30 am CET every Monday

- cron: '0 6 * * 3' # 8:00 am CET on Wednesdays
jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -19,15 +19,31 @@ jobs:
pip install requests
working-directory: ${{ github.workspace }}

# Monday message : agenda
- name: Run script post-discord-message.py
if: ${{ github.event_name == 'schedule' && github.event.scheduled_time | date('%-u') == '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: "SOFA dev reminder"
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_name == 'schedule' && github.event.scheduled_time | date('%-u') == '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: ""

2 changes: 1 addition & 1 deletion .github/workflows/post-announcements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_ANNOUNCEMENTS_WEBHOOK_URL }}
MESSAGE: ":loudspeaker: New post \"${{context.payload.discussion.category.name}}\" :arrow_right: **[${{context.payload.discussion.title}}](https://github.com/sofa-framework/sofa/discussions/${{context.payload.discussion.number}})** by [${{context.payload.discussion.author.login}}](https://github.com/${{context.payload.discussion.author.login}})"
BOT_NAME: "GitHub discussion announcement"
BOT_NAME: "Discussion announcement"
EMBEDS_TITLE: ${{context.payload.discussion.title}}
EMBEDS_URL: "https://github.com/sofa-framework/sofa/discussions/${{context.payload.discussion.number}}"

0 comments on commit a256c13

Please sign in to comment.