-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.93 KB
/
cron.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
51
52
53
54
55
56
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}}"