Skip to content

Commit

Permalink
Merge pull request #774 from BalancerMaxis/stip_pr_actoin_first_attemp
Browse files Browse the repository at this point in the history
First attempt at STIP pr action, need to merge to main to test.
  • Loading branch information
Tritium-VLK authored Jan 25, 2024
2 parents f20a1db + d4bd77b commit 205d3e6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/generate_STIP_PR.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Generate STIP PR
on:
workflow_dispatch:
inputs:
epoch_end_date:
description: 'The date like YYYY-MM-DD that was used to run the report in BalancerMaxis/STIP_Automation. Use the action there to create a PR and merge it to main first.'
require: true


jobs:
STIP_PR:
runs-on: ubuntu-latest
outputs:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number}}
pull-request-head-sha: ${{ steps.cpr.outputs.pull-request-head-sha }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Pull files from STIP repo
run: |
cd ../
git clone git@github.com:BalancerMaxis/STIP_automation
cd -
cd MaxiOps/STIP
cp ../STIP_automation/*${{ github.event.inputs.epoch_end_date }}.* .
- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@v5
with:
commit-message: "STIP Payment Payload"
title: "STIP Distribution Payload"
branch: gha-stip
branch-suffix: timestamp
delete-branch: true
labels: "STIP"

run_reports:
needs: merge_jsons
uses: "BalancerMaxis/multisig-ops/.github/workflows/run_reports_reusable.yaml@main"
secrets: inherit
with:
pr_number: ${{ needs.merge_jsons.outputs.pull-request-number }}
checkout_ref: "gha-payload-merge"

0 comments on commit 205d3e6

Please sign in to comment.