Summarizer #441
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Summarizer | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 20 * * *" | |
# To run the script every day at 5:00 a.m. in Japan time, you would need to schedule the job to run at 8:00 p.m. UTC the previous day (because Japan is 9 hours ahead of UTC). This can be done in the workflow file by setting the `cron` parameter in the `schedule` event. | |
jobs: | |
summarize: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run summarizer.py | |
run: python summarizer.py | |
env: | |
OPEN_AI_TOKEN: ${{ secrets.OPEN_AI_TOKEN }} | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
SLACK_POST_CHANNEL_ID: ${{ secrets.SLACK_POST_CHANNEL_ID }} |