-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
f606237
commit 4df4463
Showing
2 changed files
with
29 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |