File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments