Forex Monitor Automation #532
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: Forex Monitor Automation | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 19 * * 1-5" # Runs at 1900 (UTC) every workday (Check https://crontab.guru/) | |
jobs: | |
forex-monitor-automation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout the repo | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Set up Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.8' | |
- name: Install Python packages | |
run: python3 -m pip install -r requirements.txt | |
- name: Run Automation | |
run: | | |
cd src | |
python main.py ${{ secrets.FOREX_KEY }} | |
- name: Update the repo | |
run: | | |
git config --global user.name 'VivCh14' | |
git config --global user.email '[email protected]' | |
git commit -am "Update graphs via actions" | |
git push |