Skip to content

Discord Meeting Notify #22694

Discord Meeting Notify

Discord Meeting Notify #22694

name: Discord Meeting Notify
on:
schedule:
- cron: '*/5 * * * *' # Run every 5 minutes
workflow_dispatch: # Allow manual triggering from GitHub UI
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up ACDbot
uses: ./.github/actions/setup-acdbot
- name: Run Discord notification script
env:
DISCORD_ACD_WEBHOOK: ${{ secrets.DISCORD_ACD_WEBHOOK }}
ZOOM_CLIENT_ID: ${{ secrets.ZOOM_CLIENT_ID }}
ZOOM_CLIENT_SECRET: ${{ secrets.ZOOM_CLIENT_SECRET }}
ZOOM_REFRESH_TOKEN: ${{ secrets.ZOOM_REFRESH_TOKEN }}
run: uv run --project "${GITHUB_WORKSPACE}/.github/ACDbot" --locked "${GITHUB_WORKSPACE}/.github/ACDbot/scripts/discord_notify.py"
- name: Commit mapping file
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
if git diff --quiet .github/ACDbot/meeting_topic_mapping.json; then
echo "No changes to mapping file"
else
git add .github/ACDbot/meeting_topic_mapping.json
git commit -m "Update meeting-topic mapping with Discord notifications"
git push
echo "Committed mapping file changes"
fi
permissions:
contents: write