Skip to content

MTR Data Fetching Processing #17

MTR Data Fetching Processing

MTR Data Fetching Processing #17

name: MTR Data Fetching Processing
on:
schedule:
- cron: "0 10 1,15 * *"
workflow_dispatch:
jobs:
MTR-Fetch-Process-Data:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
ref: main
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
- name: Fetching & Processing resources
run: |
python ./mtr_train_main.py mtr
- name: Update resources
uses: test-room-7/action-update-file@v1
with:
file-path: |
mtr_data.json
commit-msg: Update resources
github-token: ${{ secrets.GITHUB_TOKEN }}
branch: data