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

Improvement: Automatically check to see if a PR actually triggered the action #380

Open
tanner-equi opened this issue May 8, 2024 · 2 comments

Comments

@tanner-equi
Copy link

Maybe GitHub Actions automatically support this and so this is redundant, but it is common to have actions that have multiple triggers. Since this one inherently requires a PR trigger, it would be nice to cleanly exit when that's not the current type.

@pfeerick
Copy link

pfeerick commented Jun 8, 2024

You can do tests such as if: github.event_name != 'pull_request' to run steps conditionally.

@tanner-equi
Copy link
Author

You can do tests such as if: github.event_name != 'pull_request' to run steps conditionally.

That's how I have it set up. My point is that consumers shouldn't need to do that because this action is exclusively for commenting on PRs

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

No branches or pull requests

2 participants