Skip to content
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

chore: prevent actions from running on forks #10467

Merged
merged 4 commits into from
Jan 23, 2023

Conversation

alessbell
Copy link
Member

@alessbell alessbell commented Jan 23, 2023

I've noticed a couple of PRs automatically opened on forks due to the release workflow running. They're harmless insofar as merging them will do nothing (the action will fail), but they create noise and waste resources.

prerelease.yml already had this if condition that checks the repository name, so I've added it to release.yml and also close-stale-issues.yml (again, probably harmless if it runs but makes no sense to run on forks).

Checklist:

  • If this PR contains changes to the library itself (not necessary for e.g. docs updates), please include a changeset (see CONTRIBUTING.md)
  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2023

⚠️ No Changeset found

Latest commit: ba3dacd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alessbell alessbell merged commit c7ccbce into main Jan 23, 2023
@alessbell alessbell deleted the chore-prevent-actions-from-running-on-forks branch January 23, 2023 17:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant