Skip to content

Commit

Permalink
Only download github artifacts for on-host workflows
Browse files Browse the repository at this point in the history
b/290997541
  • Loading branch information
oxve committed Aug 1, 2023
1 parent 89a861d commit a314c98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit_test_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
name: Upload Unit Test Reports
steps:
- name: Download '${{ github.event.workflow_run.name }}' Unit Test Results
if: github.event.workflow_run.name == 'evergreen' || github.event.workflow_run.name == 'linux' || github.event.workflow_run.name == 'win32'
# The `download-artifact` action can only access artifacts that were uploaded in the same workflow.
# Since it was not this workflow that uploaded the artifacts we must use rest api to download them.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
Expand Down

0 comments on commit a314c98

Please sign in to comment.