Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit c2f530e

Browse files
authored
Merge branch 'biweekly-runs' into test-workflow
2 parents 049cf45 + eddca2f commit c2f530e

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/get_mimic_report.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Collect Mimic Fee Data
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# every thursday at 9am utc
7+
- cron: "0 9 * * THU"
8+
9+
jobs:
10+
collect_fees:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.9"
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install requests
26+
27+
- name: Ensure directory exists
28+
run: mkdir -p fee_allocator/fees_collected
29+
30+
- name: Run Mimic reporting script
31+
run: python fee_allocator/fees_collected/get_report.py
32+
33+
- name: Save date
34+
run: echo "RUN_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
35+
36+
- name: Create Pull Request
37+
uses: peter-evans/create-pull-request@v7
38+
with:
39+
commit-message: "chore: new mimic fees report for period ending ${{ env.RUN_DATE }}"
40+
title: "Biweekly Mimic data ending ${{ env.RUN_DATE }}"
41+
body: |
42+
Checks before merging:
43+
- [ ] assert total wei of the json == [wei onchain](https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48?a=0x7c68c42de679ffb0f16216154c996c354cf1161b)
44+
- [ ] all active chains present
45+
branch: gha-mimic-fees
46+
branch-suffix: timestamp
47+
delete-branch: true
48+
labels: "Biweekly-Mimic-Report"
49+
reviewers: |
50+
gosuto-inzasheru
51+
Xeonus
52+
jalbrekt85
53+
Zen-Maxi

0 commit comments

Comments
 (0)