Atualizar Tesouro Direto #11569
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: Atualizar Tesouro Direto | |
on: | |
schedule: | |
- cron: "*/90 * * * *" | |
jobs: | |
scheduled-job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: npm install | |
- run: node downloadTesouro.js | |
- run: | | |
if ! git diff-index --quiet HEAD --; then | |
git config user.email "[email protected]" | |
git config user.name "BotTesouro" | |
git add PrecoTaxaTesouroDireto.csv tesouro.json | |
git commit -m "Atualizar Tesouro Direto" --allow-empty | |
git push | |
fi |