diff --git a/.github/workflows/attestation-test.yml b/.github/workflows/attestation-test.yml index f8321f0..e826921 100644 --- a/.github/workflows/attestation-test.yml +++ b/.github/workflows/attestation-test.yml @@ -10,15 +10,20 @@ 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: "" jobs: attestation-test: uses: dappnode/workflows/.github/workflows/staking-attestation-test.yml@master with: - package_variant: "hoodi" - consensus_client: ${{ github.event.client_payload.consensus_client || 'lodestar' }} + consensus_client: "lodestar" execution_client: ${{ github.event.client_payload.execution_client || inputs.execution_client || '' }} - pr_number: ${{ github.event.client_payload.pr_number || '' }} - head_ref: ${{ github.event.client_payload.head_ref || github.ref }} - sender: ${{ github.event.client_payload.sender || github.actor }} + 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 ed59fec..962e4ce 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: "lodestar" - 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