Updated CI workflow to use the commit SHA for ref in pull requests and simplified the condition for applying formatting changes.
Updated CI workflow to use the commit SHA for ref in pull requests and simplified the condition for applying formatting changes.