-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: skip website tests on PRs from forks #7296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -225,8 +225,8 @@ jobs: | |||||||
TYPESCRIPT_ESLINT_EXPERIMENTAL_TSSERVER: true | ||||||||
|
||||||||
website_tests: | ||||||||
# The NETLIFY_TOKEN secret will not be available on forks | ||||||||
if: github.repository_owner == 'typescript-eslint' | ||||||||
# The NETLIFY_TOKEN secret will not be available on PRs from forks | ||||||||
if: (github.event_name == 'push' && github.ref_name == 'main') || (github.event.pull_request.head.repo.full_name == github.repository) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a question,
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use merge queues. I don't think test triggers need to account for them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for sharing the direction! I just had confused with the trigger in here 🙇♂️
|
||||||||
permissions: | ||||||||
contents: read # to fetch code (actions/checkout) | ||||||||
|
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change does not block PRs in a fork to the same fork.
If we really need to skip all PRs in forks, this may be following