Closed blink1073 closed 5 months ago
Okay, it turns out this truly isn't possible if branch protections are on. You get something like:
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: error: Changes must be made through a pull request. Required status check "test" is expected.
Even if the user running the workflow is an admin.
https://github.com/blink1073/test-python-project/actions/runs/7521308670/job/20471980190
Back to the drawing board:
TODO: remove personal_access_token
in favor of using an environment secret and using the same token for the whole publish step - this makes things easier on both ends, and the token is still needed either way.
Is there any way to get the current workflows to work while branch protections are enabled? I can't seem to get it working since skipping just the commit with the changelog and package.json update is coupled with the new tag push.
Hi @ElioDiNino, if you ADMIN_GITHUB_TOKEN has admin permissions on the repo and you haven't selected this option it should work:
Hi @ElioDiNino, if you ADMIN_GITHUB_TOKEN has admin permissions on the repo and you haven't selected this option it should work:
Hmm okay, I will try disabling that thanks. I am actually using a GitHub app and generating a token for it in place of using a PAT so that may also be causing issues
This picked up some conflicts and has some work that needs to be removed, going to start a fresh PR.
publish_release