Sync transactions from Nubank and Itaú to my YNAB(You Need A Budget) every 1 hour #625
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
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 |