forward emails to chat #5
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: forward emails to chat | |
on: | |
schedule: | |
- cron: "0 * * * *" # every hour at minute 0 | |
concurrency: forward-emails-to-chat | |
env: | |
S3_HOST: ${{vars.S3_HOST}} | |
S3_BUCKET: ${{vars.S3_BUCKET}} | |
S3_FOLDER: ${{vars.S3_FOLDER}} | |
S3_ACCESS_KEY_ID: ${{secrets.S3_ACCESS_KEY_ID}} | |
S3_SECRET_ACCESS_KEY: ${{secrets.S3_SECRET_ACCESS_KEY}} | |
MAIL_PASSWORD: ${{secrets.MAIL_PASSWORD}} | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" # caching pip dependencies | |
- run: pip install . | |
- run: backoffice forward-emails-to-chat |