File tree 1 file changed +4
-2
lines changed
.github/actions/process-replay
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
shell : bash
8
8
run : |
9
9
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")
11
13
export CURRENT_HEAD=$(git rev-parse HEAD)
12
14
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
You can’t perform that action at this time.
0 commit comments