Skip to content

Commit

Permalink
Copy CPU profile to the workspace dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
1pkg committed Aug 23, 2024
1 parent a2c42ea commit 8622b95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ jobs:

- name: Open update PGO PR
run: |
cd ${{ github.workspace }}
cp "$PROFILE_PATH" "${{ github.workspace }}/default.pgo"
cd "${{ github.workspace }}"
git config user.email "[email protected]"
git config user.name "APM Server"
git fetch origin main
Expand All @@ -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 }}

Expand Down

0 comments on commit 8622b95

Please sign in to comment.