Skip to content

Commit

Permalink
Rename and update sync workflow
Browse files Browse the repository at this point in the history
Renamed the workflow file for broader applicability. Changed the sync frequency to every 1 hour and integrated both Nubank and Itaú. Updated dependencies and steps to use the latest `uv` version for running the sync script.
  • Loading branch information
lipemorais committed Oct 27, 2024
1 parent f606237 commit 4df4463
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/sync-nubank-to-ynab.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/sync-to-ynab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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
- run: python --version
- name: Run sync to ynab
run: |
uv run python financas_automatizadas/main.py

0 comments on commit 4df4463

Please sign in to comment.