Replies: 3 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
One recent example with
|
Beta Was this translation helpful? Give feedback.
-
|
GitHub Actions doesn’t have a separate event like Example: on:
pull_request:
jobs:
test:
if: github.event.pull_request.head.repo.full_name != github.repositoryThis condition makes the workflow run only for pull requests created from forks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Workflow Configuration
Discussion Details
In some cases, we would like to run different workflows on pull request from repository fork.
It is especially important, because such a run is limited in terms of the secrets access and read-only permissions and we have to rely on
workflow_run.At the moment, we have the following Events that trigger workflows and none of them permits to run workflows selectively enough.
That results to unsolicited runs based on a
pull_request, where we can check ifhead.repo.full_name != base.repo.full_nameand stop execution. We could try to add more filtering based on a Activity types, but it is another limitation.It could be useful to add a new event type
pull_request_from_fork, which will trigger workflow only when pull request comes from a repository fork.Related
Beta Was this translation helpful? Give feedback.
All reactions