Skip to content

Commit 4835798

Browse files
authored
Add manual data fix workflow in GitHub Actions
1 parent 2a60364 commit 4835798

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/fix_data.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Manual Data Fix
2+
3+
on:
4+
workflow_dispatch: # This allows you to run it manually from a button
5+
6+
jobs:
7+
fix-data:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.9'
17+
18+
- name: Install Dependencies
19+
run: |
20+
pip install pandas pyarrow fastparquet
21+
22+
- name: Run Fix Script
23+
run: python fix_data.py
24+
25+
- name: Commit and Push Changes
26+
run: |
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
29+
git add public/data/
30+
git commit -m "Fix: Separate product variants in parquet database" || echo "No changes to commit"
31+
git push

0 commit comments

Comments
 (0)