03 - Python Script Workflow #648
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: 03 - Python Script Workflow | |
on: | |
schedule: | |
- cron: "0 2 * * MON-FRI" # Runs at 02:00 UTC | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository content | |
uses: actions/checkout@v2 # Checkout the repository content to github runner. | |
- name: Setup Python Version | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 # Install the python version needed | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade pip requests | |
- name: Execute Python script # Run the run.py to get the latest data | |
run: python run.py |