.github/workflows/schedule.yaml #136
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
# run every day or with manual invocation | |
on: | |
schedule: | |
# Run at 14:00 UTC every weekday, which will be 9am or 10am Eastern time, depending on daylight savings | |
# https://crontab.guru/#0_14_*_*_1-5 | |
- cron: "0 14 * * 1-5" | |
# Allow the Action to be manually triggered | |
workflow_dispatch: | |
jobs: | |
scheduled-run: | |
name: Scheduled run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run script | |
run: python main.py | |
env: | |
AZURE_COMMUNICATION_SERVICES_CONNECTION_STRING: ${{ secrets.AZURE_COMMUNICATION_SERVICES_CONNECTION_STRING }} | |
AZURE_COMMUNICATION_SERVICES_SENDER_ADDRESS: ${{ secrets.AZURE_COMMUNICATION_SERVICES_SENDER_ADDRESS }} |