Skip to content

Commit 709f774

Browse files
committed
try to fix action...
I hate this
1 parent 4ddd877 commit 709f774

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/dotnet.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ jobs:
2828
- name: Test
2929
run: dotnet test --no-build --verbosity normal --blame-hang-timeout 5min
3030

31+
# copy the HTML report to a guaranteed path
32+
- name: Locate test report
33+
shell: pwsh
34+
run: |
35+
$report = Get-ChildItem -Recurse -Filter MiloLib_RoundTrip_TestReport.html | Select-Object -First 1
36+
if (-not $report) {
37+
Write-Error "MiloLib_RoundTrip_TestReport.html not found"
38+
exit 1
39+
}
40+
Copy-Item $report.FullName -Destination MiloLib_RoundTrip_TestReport.html -Force
41+
3142
- name: Publish
3243
run: dotnet publish -c Release -o publish
3344

@@ -54,7 +65,7 @@ jobs:
5465
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5566
with:
5667
upload_url: ${{ steps.create_release.outputs.upload_url }}
57-
asset_path: '**/MiloLib_RoundTrip_TestReport.html'
68+
asset_path: MiloLib_RoundTrip_TestReport.html
5869
asset_name: MiloLib_RoundTrip_TestReport.html
5970
asset_content_type: text/html
6071

0 commit comments

Comments
 (0)