Skip to content

LRT Data Fetching Processing #12

LRT Data Fetching Processing

LRT Data Fetching Processing #12

name: LRT Data Fetching Processing
on:
schedule:
- cron: "0 6 1,15 * *"
workflow_dispatch:
jobs:
LRT-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 lrt
- name: Update resources
uses: test-room-7/action-update-file@v1
with:
file-path: |
lrt_data.json
commit-msg: Update resources
github-token: ${{ secrets.GITHUB_TOKEN }}
branch: data