How to stop github actions workflow to trigger when the pull request is from dependabot-preview? #26079
-
Hi Team, I have a workflow that gets triggered whenever somebody raises a pull request. However, I would not like the workflow to get triggered whenever their is an automated pull request from the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @riprasad, Image pull request is created from compared branch ‘depbot’ to base branch. Typically workflow can be skipped with below methods:
Note: you can change the if expression according to your needs.
You can pick one according to your needs. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Correction on the second point (correct actor name):-
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure when/where this set, but our dependabot actor's name does not include the 'preview' portion.
|
Beta Was this translation helpful? Give feedback.
-
Does dependabot always create a branch named
|
Beta Was this translation helpful? Give feedback.
Hi @riprasad,
Image pull request is created from compared branch ‘depbot’ to base branch. Typically workflow can be skipped with below methods: