Google tag manager - trigger by custom event with filter
<p>I have an event name "foo" which is sent to the GTM with an object of data.</p>

<pre><code>  event: 'foo',
  eventData: {
   action: 'bar'
  }
</code></pre>

<p><a href="https://i.stack.imgur.com/kjwsi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kjwsi.png" alt="enter image description here"></a></p>

<p>I would like this trigger to fire when the EventData contains an action called "bar"</p>

<p>How can I achieve that?</p>