Skip to content

Commit a80fa53

Browse files
authored
Disables CI reporting for PRs created from the forks (#3209)
# Description Temporary disabled test reporting for PRs created from the forks.
1 parent 1b2d6ea commit a80fa53

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
isaacsim-version: ${{ env.ISAACSIM_BASE_VERSION }}
9595

9696
- name: Run General Tests
97+
id: run-general-tests
9798
uses: ./.github/actions/run-tests
9899
with:
99100
test-path: "tools"
@@ -120,6 +121,12 @@ jobs:
120121
retention-days: 1
121122
compression-level: 9
122123

124+
- name: Fail on Test Failure for Fork PRs
125+
if: github.event.pull_request.head.repo.full_name != github.repository && steps.run-general-tests.outcome == 'failure'
126+
run: |
127+
echo "Tests failed for PR from fork. The test report is in the logs. Failing the job."
128+
exit 1
129+
123130
combine-results:
124131
needs: [test-isaaclab-tasks, test-general]
125132
runs-on: [self-hosted, gpu]
@@ -166,6 +173,7 @@ jobs:
166173

167174
- name: Comment on Test Results
168175
id: test-reporter
176+
if: github.event.pull_request.head.repo.full_name == github.repository
169177
uses: EnricoMi/publish-unit-test-result-action@v2
170178
with:
171179
files: "reports/combined-results.xml"
@@ -179,6 +187,7 @@ jobs:
179187
action_fail_on_inconclusive: true
180188

181189
- name: Report Test Results
190+
if: github.event.pull_request.head.repo.full_name == github.repository
182191
uses: dorny/test-reporter@v1
183192
with:
184193
name: IsaacLab Build and Test Results

0 commit comments

Comments
 (0)