Skip to content

Commit 08d6598

Browse files
authored
Allow e2e untrusted outcome to skip if PR is from same repo (#761)
*Issue #, if available:* *Description of changes:* Small fix for PR #702 where the outcome job (All E2E Tests Passed) fails for PRs from the same repo and not from forks (e.g. dependabot PRs). Non-blocking since "E2E Tests (Untrusted) / All E2E Tests Passed (pull_request_target)" is not required in same repo PRs (see #748). *Testing:* (See PR) By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --------- Signed-off-by: Jensen Tong <jetong@amazon.com>
1 parent e91ed1f commit 08d6598

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/e2e-test-untrusted.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
secrets: inherit
4040
outcome:
4141
name: All E2E Tests Passed
42-
if: always()
42+
if: ${{ always() && github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id }}
4343
runs-on: ubuntu-latest
4444
needs:
4545
- e2e

0 commit comments

Comments
 (0)