fix: fixing perf test workflow during merge. (#16574)

This commit is contained in:
Ashok Kumar M 2022-09-06 15:02:34 +05:30 committed by GitHub
parent 9dbc648e4c
commit 3594b81a9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,11 +430,15 @@ jobs:
ports:
- 27017:27017
steps:
# Check out merge commitGIT BRANCH
- name: Fork based /ok-to-test-perf checkout
- name: Checkout the merged commit from PR and base branch
if: github.event_name == 'pull_request_review'
uses: actions/checkout@v2
with:
ref: "refs/pull/${{ github.event.pull_request.number }}/merge"
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: Checkout the head commit of the branch
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: actions/checkout@v2
# Timestamp will be used to create cache key
- id: timestamp