-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (30 loc) · 1000 Bytes
/
Copy pathpython-app.yml
File metadata and controls
36 lines (30 loc) · 1000 Bytes
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
name: Splitwise-YNAB Sync
on:
schedule:
- cron: '0 12 * * *' # h >= 12 as UTC ranges from -12 to +14
workflow_dispatch: # Manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: main # branch
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run main.py
env:
sw_consumer_key: ${{ secrets.sw_consumer_key }}
sw_consumer_secret: ${{ secrets.sw_consumer_secret }}
sw_api_key: ${{ secrets.sw_api_key }}
ynab_personal_access_token: ${{ secrets.ynab_personal_access_token }}
ynab_budget_name: ${{ vars.ynab_budget_name }}
ynab_account_name: ${{ vars.ynab_account_name }}
run: python main.py