Skip to content

cron

cron #34633

Workflow file for this run

name: cron
on:
schedule:
- cron: '*/30 * * * *'
push:
branches:
- master
workflow_dispatch:
concurrency:
group: vcard
cancel-in-progress: true
jobs:
vcard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ./requirements.txt
- name: Run Unit Tests
run: |
python3 tests.py
env:
GOOGLE_SERVICE_ACCOUNT_CREDENTIALS: "${{secrets.GOOGLE_SERVICE_ACCOUNT_CREDENTIALS}}"
GOOGLE_SPREADSHEET_ID: "${{secrets.GOOGLE_SPREADSHEET_ID}}"
AWS_ACCESS_KEY_ID: "${{secrets.AWS_ACCESS_KEY_ID}}"
AWS_SECRET_ACCESS_KEY: "${{secrets.AWS_SECRET_ACCESS_KEY}}"
AWS_SNS_REGION: "eu-central-1"
AWS_SES_REGION: "us-east-1"
AWS_S3_BUCKET_NAME: "ducati-israel-vcard"
APPLE_CARD_PRIVATE_KEY: "${{secrets.APPLE_CARD_PRIVATE_KEY}}"
APPLE_CARD_PRIVATE_KEY_PASSWORD: "${{secrets.APPLE_CARD_PRIVATE_KEY_PASSWORD}}"
CONTACT_PHONE_NUMBER: "${{secrets.CONTACT_PHONE_NUMBER}}"
- name: Run Sync
run: |
python3 main.py
env:
GOOGLE_SERVICE_ACCOUNT_CREDENTIALS: "${{secrets.GOOGLE_SERVICE_ACCOUNT_CREDENTIALS}}"
GOOGLE_SPREADSHEET_ID: "${{secrets.GOOGLE_SPREADSHEET_ID}}"
AWS_ACCESS_KEY_ID: "${{secrets.AWS_ACCESS_KEY_ID}}"
AWS_SECRET_ACCESS_KEY: "${{secrets.AWS_SECRET_ACCESS_KEY}}"
AWS_SNS_REGION: "eu-central-1"
AWS_SES_REGION: "us-east-1"
AWS_S3_BUCKET_NAME: "ducati-israel-vcard"
APPLE_CARD_PRIVATE_KEY: "${{secrets.APPLE_CARD_PRIVATE_KEY}}"
APPLE_CARD_PRIVATE_KEY_PASSWORD: "${{secrets.APPLE_CARD_PRIVATE_KEY_PASSWORD}}"
CONTACT_PHONE_NUMBER: "${{secrets.CONTACT_PHONE_NUMBER}}"