I have a mono repo in github and using the github actions to run the build/deployment pipeline.
I use the path filter on pull_request to run the related workflows on the PR.
on:
pull_request:
branches:
- main
paths:
- "doc/**"
- "***.md"
I want to run step B in the workflow only after the pr is approved and not when its opened/updated.
I am using
pull_request_review:
types: [submitted]
this does trigger the step B after the PR is submitted but since I have this trigger in all workflows, all the step B in all the workflows are getting triggered. How can I limit it to just the same PR and the related files