Skip to content

Update data.tsv

Update data.tsv #2

name: Generate Excel from Data
on:
push:
paths:
- 'data.tsv'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: pip install openpyxl
- name: Run parsing script
run: python scripts/parse_to_excel.py data.tsv data.xlsx
- name: Commit and push if changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add data.xlsx
git diff --quiet && git diff --staged --quiet || git commit -m "Update data.xlsx"
git push