ci: record-if-missing when coming from stainless (#4408)

# What does this PR do?

we will typically need to record the missing json for net new APIs. use
record-if-missing so that the integration tests can re-record and commit
the files to the PR

set the stainless inference mode to record-if-missing, and properly pass
the pr_head_sha on workflow_call.

## Test Plan

see 2031824567
which uses this commit.

Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
Charlie Doern 2025-12-18 12:40:14 -05:00 committed by GitHub
parent 2d149e3d2d
commit 5d52cb28c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 4 deletions

View file

@ -62,7 +62,7 @@ runs:
- name: Commit and push recordings
if: ${{ inputs.inference-mode == 'record' }}
if: ${{ inputs.inference-mode == 'record' || inputs.inference-mode == 'record-if-missing' }}
shell: bash
run: |
echo "Checking for recording changes"