I am trying to use GitHub Actions to automatically increment the version of my project while building the artifact and check the new changes back into the main branch.
The workflow pushes the commit using a PAT for an account that is used only for this purpose so I was able to exclude that user from the branch protection rule requiring a PR for the main branch.
Because there is also a Required Status check for that branch the push fails with
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: error: Required status check "build / tests" is expected.
How can I have the version commits skip this check while enforcing this check for all other commits?