Skip to content

Add FoMonad (#379)

Add FoMonad (#379) #18

# This workflow runs scripts/ProtocolsTable.py and commits protocols.csv to this branch
name: Generate CSV and JSON files
on:
push:
branches: [ main, master ]
jobs:
generate-csv:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Run script (testnet)
run: |
source .venv/bin/activate
python scripts/ProtocolsTable.py --network testnet
- name: Run script (mainnet)
run: |
source .venv/bin/activate
python scripts/ProtocolsTable.py --network mainnet
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "Update protocols CSV and JSON files"
file_pattern: "protocols-*.csv protocols-*.json"
push_options: "--force"