Update Live Core Fees JSON #8913
This file contains 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: Update Live Core Fees JSON | |
on: | |
workflow_dispatch: | |
schedule: | |
# every 12 hours | |
- cron: "0 0,12 * * *" | |
jobs: | |
generate_fees_report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Collect fees | |
env: | |
DRPC_KEY: ${{ secrets.DRPC_KEY }} | |
GRAPH_API_KEY: ${{ secrets.GRAPH_API_KEY }} | |
run: | | |
pwd | |
pip3 install -r requirements.txt | |
python3 main.py | |
- name: Create PR | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: "feat: new fees report" | |
title: "New Fees Report" | |
branch: gha-fees-report | |
delete-branch: true | |
labels: "Fees-Report" |