-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1017 Bytes
/
sync-to-ynab.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
name: Sync transactions from Nubank and Itaú to my YNAB(You Need A Budget) every 1 hour
on:
schedule:
- cron: 0 */1 * * * # Every 1 hour
push:
branches:
- trunk
jobs:
sync:
env:
YNAB_TOKEN: ${{ secrets.YNAB_TOKEN }}
PLUGGY_CLIENT_ID: ${{ secrets.PLUGGY_CLIENT_ID }}
PLUGGY_CLIENT_SECRET: ${{ secrets.PLUGGY_CLIENT_SECRET }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
enable-cache: true
- run: uv --version
- name: Install Python 3.12
run: uv python install 3.12
- run: uv run python --version
- name: Verify cache
if: steps.setup-uv.outputs.cache-hit == 'true'
run: echo "Cache was restored"
- name: Run sync to ynab
run: |
uv run python financas_automatizadas/main.py