File tree 1 file changed +6
-1
lines changed
.github/actions/gradle/experiment-3
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ outputs:
39
39
buildScanSecondBuild :
40
40
description : " Second build scan url"
41
41
value : ${{ steps.run.outputs.buildScanSecondBuild }}
42
+ receiptArtifactName :
43
+ description : " Name of the experiment receipt artifact"
44
+ value : ${{ steps.run.outputs.receiptArtifactName }}
42
45
43
46
runs :
44
47
using : " composite"
@@ -109,14 +112,16 @@ runs:
109
112
RECEIPT_FILE=".data/03-validate-local-build-caching-different-locations/latest/exp3-*.receipt"
110
113
BUILD_SCAN_1=$(grep -m 1 "first build" ${RECEIPT_FILE} | sed 's/.* //')
111
114
BUILD_SCAN_2=$(grep -m 1 "second build" ${RECEIPT_FILE} | sed 's/.* //')
115
+ RECEIPT_ARTIFACT_NAME="experiment-3-receipt-$(echo "${{ toJSON(matrix) }}" | md5sum | cut -f 1 -d ' ')"
112
116
113
117
echo "buildScanFirstBuild=$BUILD_SCAN_1" >> $GITHUB_OUTPUT
114
118
echo "buildScanSecondBuild=$BUILD_SCAN_2" >> $GITHUB_OUTPUT
119
+ echo "receiptArtifactName=$RECEIPT_ARTIFACT_NAME" >> $GITHUB_OUTPUT
115
120
116
121
cat $RECEIPT_FILE >> $GITHUB_STEP_SUMMARY
117
122
shell : bash
118
123
- name : Archive receipt
119
124
uses : actions/upload-artifact@v4
120
125
with :
121
- name : experiment-3-receipt
126
+ name : ${{ steps.run.outputs.receiptArtifactName }}
122
127
path : gradle-enterprise-gradle-build-validation/.data/03-validate-local-build-caching-different-locations/latest*/exp3-*.receipt
You can’t perform that action at this time.
0 commit comments