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

Do not run workflows on forks #2025

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

ni-jfitzger
Copy link
Collaborator

  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
  • I've added tests applicable for this pull request

What does this Pull Request accomplish?

My fork tried to run the Windows 64-bit Python workflow on its master branch due to
#2014.

Based on https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-run-job-for-specific-repository

List issues fixed by this Pull Request below, if any.

None

What testing has been done?

None. We'll know if it works when I sync my fork, after the merge.

@marcoskirsch marcoskirsch merged commit bc08fd9 into ni:master Sep 27, 2023
@ni-jfitzger ni-jfitzger deleted the do-not-run-workflow-on-forks branch September 27, 2023 20:04
@ni-jfitzger
Copy link
Collaborator Author

Seems to work.
https://github.com/ni-jfitzger/nimi-python/actions/runs/6331294588

The workflow will still trigger on a push / pull to a fork, but it immediately skips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants