Skip to content

Merge JSON payloads

Merge JSON payloads #6

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/dummy_repo_ci_test/.github/workflows/run_reports_reusable.yaml@main"
secrets: inherit
with:
pr_number: ${{ needs.merge_jsons.outputs.pull-request-number }}
checkout_ref: "gha-payload-merge"