Skip to content

Commit e7182bb

Browse files
authored
fix "fatal bad object" log in process replay [pr] (tinygrad#8966)
1 parent 9b9c1e1 commit e7182bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/actions/process-replay/action.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ runs:
77
shell: bash
88
run: |
99
export PR_TITLE=$(jq -r .pull_request.title "$GITHUB_EVENT_PATH")
10-
export COMMIT_MESSAGE=$(git show -s --format=%B ${{ github.event.pull_request.head.sha }})
10+
export CURRENT_SHA=${{ github.event.pull_request && github.event.pull_request.head.sha || github.sha }}
11+
git fetch origin $CURRENT_SHA
12+
export COMMIT_MESSAGE=$(git show -s --format=%B "$CURRENT_SHA")
1113
export CURRENT_HEAD=$(git rev-parse HEAD)
1214
cp test/external/process_replay/process_replay.py ./process_replay.py && git fetch origin master && git -c advice.detachedHead=false checkout origin/master && PYTHONPATH=. python3 process_replay.py
13-
git checkout $CURRENT_HEAD # restore to branch
15+
git checkout $CURRENT_HEAD # restore to branch

0 commit comments

Comments
 (0)