diff --git a/.github/workflows/ci.action.yaml b/.github/workflows/ci.action.yaml index 08359d8..83d14dc 100644 --- a/.github/workflows/ci.action.yaml +++ b/.github/workflows/ci.action.yaml @@ -20,10 +20,11 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} git-ref: ${{ github.event.pull_request.head.sha }} + git-repo: ${{ github.event.pull_request.head.repo.clone_url }} #run-args: '--log-level=debug' run-config-urls: >- - https://raw.githubusercontent.com/ethpandaops/benchmarkoor/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-cleanup.yaml, - https://raw.githubusercontent.com/ethpandaops/benchmarkoor/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-clientstdout.yaml + https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-cleanup.yaml, + https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-clientstdout.yaml run-config: | runner: benchmark: @@ -62,10 +63,11 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} git-ref: ${{ github.event.pull_request.head.sha }} + git-repo: ${{ github.event.pull_request.head.repo.clone_url }} #run-args: '--log-level=debug' run-config-urls: >- - https://raw.githubusercontent.com/ethpandaops/benchmarkoor/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-cleanup.yaml, - https://raw.githubusercontent.com/ethpandaops/benchmarkoor/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-clientstdout.yaml + https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-cleanup.yaml, + https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-clientstdout.yaml run-config: | runner: container_runtime: podman @@ -102,10 +104,11 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} git-ref: ${{ github.event.pull_request.head.sha }} + git-repo: ${{ github.event.pull_request.head.repo.clone_url }} #run-args: '--log-level=debug' run-config-urls: >- - https://raw.githubusercontent.com/ethpandaops/benchmarkoor/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-cleanup.yaml, - https://raw.githubusercontent.com/ethpandaops/benchmarkoor/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-clientstdout.yaml + https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-cleanup.yaml, + https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.sha }}/.github/workflows/config/benchmarkoor-global-clientstdout.yaml run-config: | runner: container_runtime: podman diff --git a/action.yaml b/action.yaml index ba4a4d9..7b9fd42 100644 --- a/action.yaml +++ b/action.yaml @@ -20,6 +20,11 @@ inputs: required: false default: '' + git-repo: + description: 'Git repository URL to clone for building the image. Only used when image is not provided. Defaults to ethpandaops/benchmarkoor.' + required: false + default: 'https://github.com/ethpandaops/benchmarkoor.git' + upload-artifacts: description: 'Whether to upload run results as GitHub artifacts' required: false @@ -65,8 +70,10 @@ runs: GIT_REF="master" fi - echo "Cloning https://github.com/ethpandaops/benchmarkoor.git at ref $GIT_REF" - git clone https://github.com/ethpandaops/benchmarkoor.git benchmarkoor-build + GIT_REPO="${{ inputs.git-repo }}" + + echo "Cloning ${GIT_REPO} at ref $GIT_REF" + git clone "${GIT_REPO}" benchmarkoor-build cd benchmarkoor-build git checkout "$GIT_REF"