From b16e0de7342d4a205fbec41e648e4f5e6b86784c Mon Sep 17 00:00:00 2001 From: David Esparza Date: Thu, 15 Jun 2023 13:11:33 -0600 Subject: [PATCH] gha: Add base branch on SHA on pull requst The run-launchtimes-metrics workflow needs to get the commit ID for the last commit to the head branch of the PR. Fixes: #7116 Signed-off-by: David Esparza --- .github/workflows/run-launchtimes-metrics.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/run-launchtimes-metrics.yaml b/.github/workflows/run-launchtimes-metrics.yaml index 67045acf26..788f3488f3 100644 --- a/.github/workflows/run-launchtimes-metrics.yaml +++ b/.github/workflows/run-launchtimes-metrics.yaml @@ -8,6 +8,10 @@ jobs: env: GOPATH: ${{ github.workspace }} steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: run launch times on qemu run: bash tests/metrics/gha-run.sh run-test-launchtimes-qemu