From cd3c7e1fd09005f5e8702da14b3af8e4e9ef0905 Mon Sep 17 00:00:00 2001 From: Kostiantyn Masliuk <1pkg@protonmail.com> Date: Thu, 22 Aug 2024 19:21:47 -0700 Subject: [PATCH] Copy CPU profile to the workspace dir. --- .github/workflows/benchmarks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 0a563e2c59a..54b411d8acd 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -183,7 +183,8 @@ jobs: - name: Open update PGO PR run: | - cd ${{ github.workspace }} + cd "${{ github.workspace }}" + mv "$PROFILE_PATH" default.pgo git config user.email "apm@elastic.co" git config user.name "APM Server" git fetch origin main @@ -195,6 +196,7 @@ jobs: git push -u origin "$BRANCH" gh pr create -B main -H "$BRANCH" -f -R elastic/apm-server env: + PROFILE_PATH: ${{ env.WORKING_DIRECTORY }}/${{ env.BENCHMARK_CPU_OUT }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WORKFLOW: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}