Skip to content

Generate STIP PR

Generate STIP PR #4

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

Check failure on line 45 in .github/workflows/generate_STIP_PR.yaml

View workflow run for this annotation

GitHub Actions / Generate STIP PR

Invalid workflow file

The workflow is not valid. .github/workflows/generate_STIP_PR.yaml (Line: 45, Col: 12): Job 'run_reports' depends on unknown job '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"