Skip to content

Merge JSON payloads

Merge JSON payloads #1

Workflow file for this run

name: Merge JSON payloads
on:
workflow_dispatch:
inputs:
runWeek:
description: "The week to run on like YYYY-W##, should match a directory in BIPs/"
required: true
jobs:
merge_jsons:
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@v4
- name: Cache Compiler Installations
uses: actions/cache@v4
with:
path: |
~/.solcx
~/.vvm
key: compiler-cache
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Run script with JSON files
run: |
pip3 install -r action-scripts/requirements-actions.txt
python action-scripts/merge_pr_jsons.py --target BIPs/${{ github.event.inputs.runWeek }}
- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@v6
with:
commit-message: "Combined JSON Payloads ${{ github.event.inputs.directory }}"
title: "Combined JSON payloads ${{ github.event.inputs.directory }}"
assignees: tritium-vlk
branch: gha-payload-merge
delete-branch: true
labels: "Merged Payloads"
run_reports:
needs: merge_jsons
uses: "BalancerMaxis/test_external_pr_actions/.github/workflows/run_reports_reusable.yaml@main"

Check failure on line 51 in .github/workflows/merge_json.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/merge_json.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/merge_json.yaml" -> "BalancerMaxis/test_external_pr_actions/.github/workflows/run_reports_reusable.yaml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
secrets: inherit
with:
pr_number: ${{ needs.merge_jsons.outputs.pull-request-number }}
checkout_ref: "gha-payload-merge"