5e-bits/5e-database

GitHub deploy action trying to run in a fork

Rarst opened this issue · 6 comments

Rarst commented

I've noticed that I got a failing GitHub deploy action in my fork, when working on PR.

Seems like it would make sense if any action of such kind was restricted to the original repo?

That's a good point. I'm not entirely sure how to do that but I bet it's documented somewhere. If you want to take a stab, feel free to open a PR but I'll can take a look later.

Could we just add a condition to the workflows?

  if: github.repository == '5e-bits/5e-database'
Rarst commented

Not very fluent with Actions to sort out what's going on, but here is docs link for that:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-run-job-for-specific-repository

Let me throw together a quick PR for both repos.

Okay. I think that should do it?

Can someone sanity check me?