-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #774 from BalancerMaxis/stip_pr_actoin_first_attemp
First attempt at STIP pr action, need to merge to main to test.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
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" |