-
Hello, I’m trying to run an action only when a PR comment is posted. After reading the documentation I found that the workflow should exist on the master branch so I created and merged to master but there is no way to get it. This is the workflow definition:
Any suggestions? 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Try this workflow, it should echo |
Beta Was this translation helpful? Give feedback.
-
Hi Nathan, Thanks but I tried the workflow and it’s not triggered. Also added the dump context that should be triggered for any comment and the same result.
|
Beta Was this translation helpful? Give feedback.
-
This should work.
When I added a comment (contains ‘/qa’) on a PR, job2 can run normally as expected. See the example workflow run. When I added a comment (contains ‘/qa’) on a issue, job2 was skipped, this also is the expected result. See the example workflow run. |
Beta Was this translation helpful? Give feedback.
-
Finally found where was the problem, the events worked always but there was a problem with a dependant job that blocked the comment event. Thanks @brightran and @ghostwriter. |
Beta Was this translation helpful? Give feedback.
Finally found where was the problem, the events worked always but there was a problem with a dependant job that blocked the comment event. Thanks @brightran and @ghostwriter.