fix: ensure docs sync works with protected branch#2142
Merged
beastoin merged 1 commit intoBasedHardware:mainfrom Apr 2, 2025
Merged
fix: ensure docs sync works with protected branch#2142beastoin merged 1 commit intoBasedHardware:mainfrom
beastoin merged 1 commit intoBasedHardware:mainfrom
Conversation
Collaborator
ahhh @krushnarout please check |
Member
Author
@beastoin GitHub Actions is restricted at the organization level. @kodjima33 Organization Settings → Actions → General, then tick the checkbox for "Allow GitHub Actions to create and approve pull requests." |
Member
Author
Can you also enable read and write access, run the workflow, and let me know! |
Collaborator
Member
Author
beastoin
added a commit
that referenced
this pull request
Apr 3, 2025
Related to #2142 Only enable 'Allow GitHub Actions to create and approve pull requests.' No need to grant 'Read and write permissions.'
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
Because `main` is a protected branch, direct pushes from GitHub Actions are blocked. The only way to fix this is by having the action create a pull request when changes are made to sync the documentation. To enable this, you need to check the "Allow GitHub Actions to create and approve pull requests" option. Go to Repo Settings → Actions → General, then tick the checkbox for "Allow GitHub Actions to create and approve pull requests." <img width="913" alt="Screenshot 2025-04-01 at 6 28 55 PM" src="https://github.com/user-attachments/assets/e36e8947-8822-42a1-a702-95635cf1446a" /> I've tested it in my own repo, and it works as expected: https://github.com/krushnarout/omi-docs-test/pull/1
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
Related to BasedHardware#2142 Only enable 'Allow GitHub Actions to create and approve pull requests.' No need to grant 'Read and write permissions.'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






Because
mainis a protected branch, direct pushes from GitHub Actions are blocked. The only way to fix this is by having the action create a pull request when changes are made to sync the documentation.To enable this, you need to check the "Allow GitHub Actions to create and approve pull requests" option.
Go to Repo Settings → Actions → General, then tick the checkbox for "Allow GitHub Actions to create and approve pull requests."
I've tested it in my own repo, and it works as expected: https://github.com/krushnarout/omi-docs-test/pull/1