This commit is contained in:
Ashwin Bharambe 2025-07-30 21:58:03 -07:00
parent 10af1e0375
commit 6363a8d1df

View file

@ -51,6 +51,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with: with:
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Generate test types - name: Generate test types
id: generate-test-types id: generate-test-types
@ -122,7 +123,12 @@ jobs:
echo "New recordings detected, committing and pushing" echo "New recordings detected, committing and pushing"
git add tests/integration/recordings/ git add tests/integration/recordings/
git commit -m "Update recordings" git commit -m "Update recordings"
git push origin HEAD:${{ github.head_ref }}
# re-sync with whatever is now on GitHub
git fetch origin ${{ github.head_ref }}
git rebase origin/${{ github.head_ref }}
git push --force-with-lease origin HEAD:${{ github.head_ref }}
else else
echo "No recording changes" echo "No recording changes"
fi fi