I have a workflow that I run on PRs that validates the build of front end assets, and I’ve set that up as a status check against merging to master.
I now have a scenario where I would like the execution of this workflow to be optional, and only run if files in the front end code has changed. Setting this up is simple with on.<push|pull_request>.paths, but when this workflow isn’t executed the status check fail.
I assume I could implement the path filter as an if statement for the relevant step, but that seems a lot more complicated so I’d prefer to avoid that if there’s a better way. Any suggestions on how to implement this the best way?