Skip to content

FX

FX #1619

Workflow file for this run

name: FX
on:
schedule:
- cron: '5 1 * * *'
jobs:
build:
name: Oanda tickers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python3 forex/oanda.py > forex/oanda_all_pairs.txt
- run: python3 forex/oanda.py -t cfd > forex/oanda_cfd_pairs.txt
- run: python3 forex/oanda.py -t currency > forex/oanda_fx_pairs.txt
- run: python3 forex/oanda.py -t metal > forex/oanda_metal_pairs.txt
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add forex/
git diff-index --quiet HEAD || git commit -m "Oanda: automatic update" -a
git pull --rebase && git push