Skip to content

Commit 11ba621

Browse files
Copilotxperiandri
andauthored
ci: tolerate missing test-result artifacts in publish workflow
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/aa451f1b-8f2c-4148-b6fe-ac4d6356af9f Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent 52c17c5 commit 11ba621

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish-test-results.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
run_id: ${{ github.event.workflow_run.id }}
3434
path: test-results
3535
pattern: test-results-*
36+
if_no_artifact_found: warn
3637

3738
- name: Resolve event file path
3839
id: event_file
@@ -49,6 +50,7 @@ jobs:
4950
"path=$eventFilePath" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
5051
5152
- name: Publish test results
53+
if: ${{ hashFiles('test-results/**/*.trx') != '' }}
5254
uses: EnricoMi/publish-unit-test-result-action@v2
5355
with:
5456
commit: ${{ github.event.workflow_run.head_sha }}

0 commit comments

Comments
 (0)