File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
sha :
6
6
description : ' the commit sha which was performance tested'
7
7
required : true
8
+ branch :
9
+ description : ' the branch which the results should be commited in'
10
+ required : false
11
+ default : ' master'
8
12
9
13
permissions :
10
14
id-token : write # This is required for requesting the JWT
@@ -18,11 +22,13 @@ jobs:
18
22
role-to-assume : arn:aws:iam::637423498965:role/GitHubActionGrahQLJava
19
23
aws-region : " ap-southeast-2"
20
24
- uses : actions/checkout@v4
25
+ with :
26
+ ref : ${{ github.event.inputs.branch }}
21
27
- 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"
23
29
git config user.name "github-actions[bot]"
24
30
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
26
32
if [ -z "$(git status --porcelain)" ]; then
27
33
echo "Performance results already present"
28
34
exit 0
You can’t perform that action at this time.
0 commit comments