You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason: If the main branch is protected, then the action can't push to it.
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: error: You're not authorized to push to this branch. Visit https://docs.github.com/articles/about-protected-branches/ for more information.
To https://github.com/<org>/<repo>
* [new tag] v0.91.0 -> v0.91.0
! [remote rejected] HEAD -> main (protected branch hook declined)
I think if we can use the release token instead, and allow an input for the username as well (that can default to {{github.actor}} then it should work?
The text was updated successfully, but these errors were encountered:
I think I've gotten it to work in my project's workflow by specifying a personal access token from a user that has permissions to push code, when checking out the code. eg.
The only problem with doing this is that the build runs again, on the push from git-ops... but it shouldn't lead to an infinite loop because that build will only be for the chore commit, which won't make a new release?
Maybe this needs to be detailed in docs somewhere, if wanting to push to a protected branch?
I think here - https://github.com/team-alembic/staple-actions/blob/main/actions/git-ops/action.yml#L98
Reason: If the main branch is protected, then the action can't push to it.
I think if we can use the release token instead, and allow an input for the username as well (that can default to
{{github.actor}}
then it should work?The text was updated successfully, but these errors were encountered: