diff --git a/.github/workflows/zz-test-worker-poc.yaml b/.github/workflows/zz-test-worker-poc.yaml index b5bbf166a0678..76aa2dc031c02 100644 --- a/.github/workflows/zz-test-worker-poc.yaml +++ b/.github/workflows/zz-test-worker-poc.yaml @@ -7,8 +7,12 @@ on: description: 'JSON string defining the dynamic matrices for all jobs' required: true type: string - ref: - description: 'Commit SHA to check out. Use PR head SHA to report as PR check.' + checkout_ref: + description: 'Commit SHA to check out. This is the commit where the repo will be checked out.' + required: true + type: string + source_sha: + description: 'Source SHA to use for the check run' required: true type: string name: @@ -41,7 +45,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, name: 'Test Worker POC - ${{ inputs.name }}', - head_sha: '${{ inputs.ref }}', + head_sha: '${{ inputs.source_sha }}', status: 'in_progress', details_url: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}', output: { @@ -61,7 +65,7 @@ jobs: - name: Check out repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.checkout_ref }} - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 @@ -95,7 +99,7 @@ jobs: - name: Check out repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.checkout_ref }} - name: Run Generic Task run: |