-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not run report action on forks to avoid permissions issues
- Loading branch information
1 parent
ad9fe2c
commit e608276
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,9 @@ jobs: | |
timeout-minutes: 120 | ||
- name: Publish Test Report | ||
uses: mikepenz/[email protected] | ||
if: ${{ always() && ( github.ref != 'refs/heads/master') }} | ||
# To avoid permissions issues do not run with forked repos | ||
# (see https://github.com/mikepenz/action-junit-report/issues/23) | ||
if: ${{ always() && (github.ref != 'refs/heads/master') && (github.event.pull_request.head.repo.full_name == github.repository) }} | ||
with: | ||
report_paths: '/__w/firedrake/firedrake/firedrake.xml' | ||
comment: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,9 @@ jobs: | |
|
||
- name: Publish Test Report | ||
uses: mikepenz/[email protected] | ||
if: ${{ always() && ( github.ref != 'refs/heads/master') }} | ||
# To avoid permissions issues do not run with forked repos | ||
# (see https://github.com/mikepenz/action-junit-report/issues/23) | ||
if: ${{ always() && (github.ref != 'refs/heads/master') && (github.event.pull_request.head.repo.full_name == github.repository) }} | ||
with: | ||
report_paths: '/home/firedrake/pip_venv/src/firedrake/firedrake.xml' | ||
comment: true | ||
|