We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b9c1e1 commit e7182bbCopy full SHA for e7182bb
.github/actions/process-replay/action.yml
@@ -7,7 +7,9 @@ runs:
7
shell: bash
8
run: |
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 }})
+ 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")
13
export CURRENT_HEAD=$(git rev-parse HEAD)
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
- git checkout $CURRENT_HEAD # restore to branch
15
+ git checkout $CURRENT_HEAD # restore to branch
0 commit comments