proppy / tiny_user_project

Apache License 2.0
10 stars 8 forks source link

user_project_ci action fails in the "Commit" stage (when protected branches are enabled) #22

Open rolfmobile99 opened 1 year ago

rolfmobile99 commented 1 year ago

If someone has set up protected branches for their GitHub account (perfectly reasonable to do), then the user_project_ci action will fail! This is because it does a "git push" and expects that to work.

The specific error message looks something like: GH006: Protected branch update failed for refs ...

The workaround is to turn off the protected branch. (a bit hard to find on github.. look under Settings/Branches then "Branch protection rule")