datadog-actions-metrics icon indicating copy to clipboard operation
datadog-actions-metrics copied to clipboard

Adding some information on the Workflow Run trigger

Open gs-emp opened this issue 1 year ago • 1 comments

Adding information about when the workflow_run triggers - this should be helpful for people who don't know it will only run in the default branch

gs-emp avatar Apr 10 '24 12:04 gs-emp

Sorry, does it mean the following considerations?

  • A workflow of workflow_run is triggered for any event by default.
  • A workflow of workflow_run is evaluated in the default branch. For changing the options of this action, we need to change the default branch.

int128 avatar Apr 21 '24 02:04 int128

Mainly that the workflow_run trigger is only evaluated from the default branch. You can specify what branches and such.

I think for people when they add it to their repo may be confused by the fact that it won't trigger in a pullrequest or in a different branch.

So for example:

  • I add this in my feature/datadog-metrics branch for repo X
  • I make a pull request and am not sure why the trigger is not happening.

gs-emp avatar May 10 '24 18:05 gs-emp

Not sure if my wording in the pr is great let me know at @int128

gs-emp avatar May 10 '24 18:05 gs-emp

Gonna close this as we aren't using this anymore and clearing up my repos

gs-emp avatar May 24 '24 07:05 gs-emp