From 136c560f948b37fa2890f5a3f3d893c45d5d6eea Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Mon, 27 Jan 2025 13:17:33 +0100 Subject: [PATCH 1/2] ci: only commit updated core pool fees csv #336 --- .github/workflows/collect_fees_cron.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/collect_fees_cron.yaml b/.github/workflows/collect_fees_cron.yaml index 1dd02c72..c187578a 100644 --- a/.github/workflows/collect_fees_cron.yaml +++ b/.github/workflows/collect_fees_cron.yaml @@ -28,12 +28,9 @@ jobs: pip3 install -r requirements.txt python3 main.py - - name: Create PR - id: cpr - uses: peter-evans/create-pull-request@v7 + - name: Commit CSV file + uses: stefanzweifel/git-auto-commit-action@v5 with: - commit-message: "feat: new fees report" - title: "New Fees Report" - branch: gha-fees-report - delete-branch: true - labels: "Fees-Report" + branch: "collect-fees-cron" + file_pattern: "fee_allocator/allocations/current_fees.csv" + commit_message: "ci: dump csv file with all current fees" From b14af4ebe7ff1beb7e98ec3cbbcff968997a9af8 Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Mon, 27 Jan 2025 13:22:23 +0100 Subject: [PATCH 2/2] fix: check out branch that needs to be written to --- .github/workflows/collect_fees_cron.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/collect_fees_cron.yaml b/.github/workflows/collect_fees_cron.yaml index c187578a..fd9ed682 100644 --- a/.github/workflows/collect_fees_cron.yaml +++ b/.github/workflows/collect_fees_cron.yaml @@ -13,11 +13,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: "collect-fees-cron" - name: Setup Python 3.9 uses: actions/setup-python@v5 with: python-version: "3.10" + cache: "pip" - name: Collect fees env: