I have a Github action in my repository that runs only when a specific file has changed. I have marked this action as required in repository settings so that whenever it fails the automatic merge gets blocked. Merge block is working fine but if a PR doesn't include a change to that specific file, Github still blocks the PR waiting for the job to complete which won't even run. Ideally, Github should ignore this action if it is not applicable.

I have put up a public [repository](https://github.com/sferhan/hello-github-actions) that showcases this behavior. There are two PRs open: one that is working fine and the other one is blocked.

Any suggested workaround for this?