Skip to content

Commit d7c47f9

Browse files
committed
testing
1 parent 046545c commit d7c47f9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/commit_performance_result.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
sha:
66
description: 'the commit sha which was performance tested'
77
required: true
8+
branch:
9+
description: 'the branch which the results should be commited in'
10+
required: false
11+
default: 'master'
812

913
permissions:
1014
id-token: write # This is required for requesting the JWT
@@ -18,11 +22,13 @@ jobs:
1822
role-to-assume: arn:aws:iam::637423498965:role/GitHubActionGrahQLJava
1923
aws-region: "ap-southeast-2"
2024
- uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.event.inputs.branch }}
2127
- run: |
22-
aws s3 cp s3://graphql-java-jmh-output/${{ github.event.inputs.sha }}-jdk17.json ./performance-results
28+
aws s3 cp s3://graphql-java-jmh-output/ ./performance-results --recursive --exclude "*" --include "*-${{ github.event.inputs.sha }}-jdk17.json"
2329
git config user.name "github-actions[bot]"
2430
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
25-
git add performance-results/${{ github.event.inputs.sha }}-jdk17.json
31+
git add performance-results/*-${{ github.event.inputs.sha }}-jdk17.json
2632
if [ -z "$(git status --porcelain)" ]; then
2733
echo "Performance results already present"
2834
exit 0

0 commit comments

Comments
 (0)