-
Notifications
You must be signed in to change notification settings - Fork 370
50 lines (42 loc) · 1.53 KB
/
zoom-transcript-poll.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
name: "Zoom Transcript Poller"
on:
workflow_dispatch:
inputs:
FORCE_MEETING_ID:
description: "Optional: Force processing of a specific Zoom meeting ID"
required: false
schedule:
- cron: "0 */3 * * *"
jobs:
poll-transcripts:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .github/ACDbot/
pip install pytz google-api-python-client
pip install -r .github/ACDbot/requirements.txt
- name: Poll Zoom for recordings
run: |
python .github/ACDbot/scripts/poll_zoom_recordings.py \
--force_meeting_id "${{ github.event.inputs.FORCE_MEETING_ID }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Zoom credentials
ZOOM_ACCOUNT_ID: ${{ secrets.ZOOM_ACCOUNT_ID }}
ZOOM_CLIENT_ID: ${{ secrets.ZOOM_CLIENT_ID }}
ZOOM_CLIENT_SECRET: ${{ secrets.ZOOM_CLIENT_SECRET }}
# Discourse credentials
DISCOURSE_API_KEY: ${{ secrets.DISCOURSE_API_KEY }}
DISCOURSE_API_USERNAME: ${{ secrets.DISCOURSE_API_USERNAME }}
DISCOURSE_BASE_URL: ${{ vars.DISCOURSE_BASE_URL }}
# Telegram credentials
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ vars.TELEGRAM_CHAT_ID }}