Skip to content

Commit 561c490

Browse files
authored
Replay: keep ref history (commaai#37357)
keep history
1 parent 496ae85 commit 561c490

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ jobs:
162162
if: github.repository == 'commaai/openpilot' && github.ref == 'refs/heads/master'
163163
working-directory: ${{ github.workspace }}/ci-artifacts
164164
run: |
165-
git checkout --orphan process-replay
166-
git rm -rf .
167165
git config user.name "GitHub Actions Bot"
168166
git config user.email "<>"
167+
git fetch origin process-replay || true
168+
git checkout process-replay 2>/dev/null || git checkout --orphan process-replay
169169
cp ${{ github.workspace }}/selfdrive/test/process_replay/fakedata/*.zst .
170170
echo "${{ github.sha }}" > ref_commit
171171
git add .
172-
git commit -m "process-replay refs for ${{ github.repository }}@${{ github.sha }}"
173-
git push origin process-replay --force
172+
git commit -m "process-replay refs for ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit"
173+
git push origin process-replay
174174
- name: Run regen
175175
if: false
176176
timeout-minutes: 4

0 commit comments

Comments
 (0)