Skip to content

Update operators

Update operators #11

name: Update operators
on:
pull_request:
types: [closed]
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
update-operators-feegrant-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository and Switch to Main
uses: actions/checkout@v2
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install requests python-dotenv
- name: Update Operators
run: python ./scripts/update_operators.py
- name: Update Feegrant Data
run: python ./scripts/update_feegrant_data.py
- name: Update Operators Table in README
run: python ./scripts/update_operators_in_readme.py
- name: Commit and Push Changes
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Sync Operators file" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}