diff --git a/.github/workflows/attestation-test.yml b/.github/workflows/attestation-test.yml new file mode 100644 index 0000000..04e2697 --- /dev/null +++ b/.github/workflows/attestation-test.yml @@ -0,0 +1,29 @@ +name: Proof of Attestation + +on: + repository_dispatch: + types: [tropibot-attestation-test] + workflow_dispatch: + inputs: + execution_client: + description: "Execution Client" + required: true + type: choice + options: [geth, nethermind, besu, erigon, reth] + ipfs_hash: + description: "Optional pre-built IPFS hash to test against" + required: false + type: string + default: "" + +jobs: + attestation-test: + uses: dappnode/workflows/.github/workflows/staking-attestation-test.yml@master + with: + consensus_client: "teku" + execution_client: ${{ github.event.client_payload.execution_client || inputs.execution_client || '' }} + pr_number: ${{ github.event.client_payload.pr_number || github.event.pull_request.number || '' }} + head_ref: ${{ github.event.client_payload.head_ref || github.event.pull_request.head.ref || github.ref_name }} + sender: ${{ github.event.client_payload.sender || github.event.pull_request.user.login || github.actor }} + ipfs_hash: ${{ github.event.client_payload.ipfs_hash || inputs.ipfs_hash || '' }} + secrets: inherit diff --git a/.github/workflows/sync-test.yml b/.github/workflows/sync-test.yml index 628fb68..e096598 100644 --- a/.github/workflows/sync-test.yml +++ b/.github/workflows/sync-test.yml @@ -1,6 +1,8 @@ name: Execution Client Sync Test on: + repository_dispatch: + types: [tropibot-sync-test] workflow_dispatch: inputs: execution_client: @@ -8,6 +10,11 @@ on: required: true type: choice options: [geth, nethermind, besu, erigon, reth] + ipfs_hash: + description: "Optional pre-built IPFS hash to test against" + required: false + type: string + default: "" pull_request: branches: - "main" @@ -19,5 +26,9 @@ jobs: uses: dappnode/workflows/.github/workflows/staking-sync-test.yml@master with: consensus_client: "teku" - execution_client: ${{ inputs.execution_client || '' }} + execution_client: ${{ github.event.client_payload.execution_client || inputs.execution_client || '' }} + pr_number: ${{ github.event.client_payload.pr_number || github.event.pull_request.number || '' }} + head_ref: ${{ github.event.client_payload.head_ref || github.event.pull_request.head.ref || github.ref_name }} + sender: ${{ github.event.client_payload.sender || github.event.pull_request.user.login || github.actor }} + ipfs_hash: ${{ github.event.client_payload.ipfs_hash || inputs.ipfs_hash || '' }} secrets: inherit