Skip to content

Stop github actions running on a fork #26704

Answered by BrightRan
jimbob88 asked this question in Actions
Discussion options

You must be logged in to vote

@jimbob88 ,

If you do not want any workflows run on your repository, you can navigate to Settings > Actions > Actions permissions to Disable Actions for this repository.

However, as you mentioned, you may need to run some of yourself workflows, so this may be not a perfect way. And we have no methods to allow us to tell the PRs only merge the files we want and do not merge the files we do not want.

As a workaround, maybe you can try this:

  1. Keep all the workflow YAML files in your forked repository, include yours and other people’s.

  2. In your workflows, add the following if conditional for each job.

    if: github.repository == ‘jimbob88/Osiris’

  3. In othe…

Replies: 14 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@laurent22
Comment options

@rickstaa
Comment options

@laurent22
Comment options

@rickstaa
Comment options

@maphew
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment