Skip to content

Commit d84eb74

Browse files
committed
workflow to copy performance results
1 parent 540d229 commit d84eb74

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Copy performance results from S3
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
sha:
6+
description: 'the commit sha which was performance tested'
7+
required: true
8+
9+
permissions:
10+
id-token: write # This is required for requesting the JWT
11+
contents: write # This is required for pushing changes back to the repo
12+
jobs:
13+
publishCommit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: aws-actions/configure-aws-credentials@v4
17+
with:
18+
role-to-assume: arn:aws:iam::637423498965:role/GitHubActionGrahQLJava
19+
aws-region: "ap-southeast-2"
20+
- uses: actions/checkout@v4
21+
- run: |
22+
aws s3 cp s3://graphql-java-jmh-output/${{ github.event.inputs.sha }}-jdk17.json ./performance-results
23+
git add performance-results/${{ github.event.inputs.sha }}-jdk17.json
24+
if [ -z "$(git status --porcelain)" ]; then
25+
echo "Performance results already present"
26+
exit 0
27+
fi
28+
git commit -m "Add performance results for commit ${{ github.event.inputs.sha }}"
29+
git push
30+

performance-results/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)