Skip to content

Generate price.json

Generate price.json #4

Workflow file for this run

name: Generate price.json
on:
push:
paths:
- 'price.xlsx'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: pip install pandas openpyxl
- name: Run script
run: python update_price.py
- name: Commit and push price.json
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add price.json
git diff --staged --quiet || (git commit -m "Auto update price.json" && git push)