Skip to content

Commit 9a79247

Browse files
committed
Fix benchmarking output in github.
1 parent 9273bd3 commit 9a79247

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/post_benchmark_results.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
uses: actions/[email protected]
2222
with:
2323
script: |
24+
echo "Flag 1";
2425
var artifacts = await github.actions.listWorkflowRunArtifacts({
2526
owner: context.repo.owner,
2627
repo: context.repo.repo,
2728
run_id: ${{github.event.workflow_run.id }},
2829
});
30+
echo "Flag 2";
2931
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
3032
return artifact.name == "benchmark_1_results"
3133
})[0];
@@ -35,44 +37,52 @@ jobs:
3537
artifact_id: matchArtifact.id,
3638
archive_format: 'zip',
3739
});
40+
echo "Flag 3";
3841
var fs = require('fs');
3942
fs.writeFileSync('${{github.workspace}}/benchmark_1_results.zip', Buffer.from(download.data));
4043
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
4144
return artifact.name == "benchmark_2_results"
4245
})[0];
46+
echo "Flag 4";
4347
var download = await github.actions.downloadArtifact({
4448
owner: context.repo.owner,
4549
repo: context.repo.repo,
4650
artifact_id: matchArtifact.id,
4751
archive_format: 'zip',
4852
});
53+
echo "Flag 5";
4954
var fs = require('fs');
5055
fs.writeFileSync('${{github.workspace}}/benchmark_2_results.zip', Buffer.from(download.data));
5156
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
5257
return artifact.name == "benchmark_3_results"
5358
})[0];
59+
echo "Flag 6";
5460
var download = await github.actions.downloadArtifact({
5561
owner: context.repo.owner,
5662
repo: context.repo.repo,
5763
artifact_id: matchArtifact.id,
5864
archive_format: 'zip',
5965
});
66+
echo "Flag 7";
6067
var fs = require('fs');
6168
fs.writeFileSync('${{github.workspace}}/benchmark_3_results.zip', Buffer.from(download.data));
6269
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
6370
return artifact.name == "benchmark_4_results"
6471
})[0];
72+
echo "Flag 8";
6573
var download = await github.actions.downloadArtifact({
6674
owner: context.repo.owner,
6775
repo: context.repo.repo,
6876
artifact_id: matchArtifact.id,
6977
archive_format: 'zip',
7078
});
79+
echo "Flag 9";
7180
var fs = require('fs');
7281
fs.writeFileSync('${{github.workspace}}/benchmark_4_results.zip', Buffer.from(download.data));
7382
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
7483
return artifact.name == "benchmark_5_results"
7584
})[0];
85+
echo "Flag 10";
7686
var download = await github.actions.downloadArtifact({
7787
owner: context.repo.owner,
7888
repo: context.repo.repo,

0 commit comments

Comments
 (0)