How can we run github workflows on multiple branches for multiple triggers? Example - How can I run a workflow on pull_request & push on say prod & dev? Refer the code snippet below
on: [push, pull_request]
branches:
- 'dev'
- 'prod'
The above isn't allowed. I get the following error -
Property branches is not allowed.yaml-schema: GitHub Workflow
How can I handle this?