-
Is there a way to tell actions not to run my tests.yml file on a PR merge to master? I only care about running tests:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Once a PR is merged, it will be closed automatically. The activity type ‘closed’ of the pull_request event should work. In your case, you can reference to the example workflow below to configure yours:
Of course, you also can remove ‘closed’ from the list of the activity types, so that the workflow will not be triggered every time the PR is closed (manual or merged).
|
Beta Was this translation helpful? Give feedback.
-
Thanks. I also had to remove synchronized as well. Now it only runs my CI on PR merges (closed) which is what I’m aiming for. |
Beta Was this translation helpful? Give feedback.
@dschinkel ,
Once a PR is merged, it will be closed automatically. The activity type ‘closed’ of the pull_request event should work.
In your case, you can reference to the example workflow below to configure yours:
Of course, you also can remove ‘closed’ from the list of the activity types, so…