Update data.tsv #2
This file contains hidden or 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: 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 |