Collect Exchange Rates & Stocks #1371
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: Collect Exchange Rates & Stocks | |
on: | |
schedule: | |
- cron: "0 12 * * *" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Deps | |
run: | | |
yarn install --production | |
- name: Collect Exch Rates | |
run: | | |
yarn collect-exchange-rates | |
env: | |
OXR_APP_ID: ${{ secrets.OXR_APP_ID }} | |
- name: Collect Stocks | |
run: | | |
yarn collect-stocks | |
- name: Commit and Push | |
run: | | |
git config --global user.name 'alexk111' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -am "Automated data collection" | |
git push |