Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto update table of contents is failing #886

Closed
dbeatty10 opened this issue Apr 25, 2024 · 0 comments · Fixed by #887
Closed

Auto update table of contents is failing #886

dbeatty10 opened this issue Apr 25, 2024 · 0 comments · Fixed by #887
Labels
bug Something isn't working

Comments

@dbeatty10
Copy link
Contributor

Describe the bug

Steps to reproduce

  1. Merge a PR to the main branch
  2. See that it fails

Example:

  1. 4469239
  2. https://github.com/dbt-labs/dbt-utils/actions/runs/8806875901/job/24172640397

Expected results

Actual results

Screenshots and log output

[main 3e0e2a4] Auto update table of contents
 Author: dbeatty10 <dbeatty10@users.noreply.github.com>
 1 file changed, 44 insertions(+), 44 deletions(-)
INPUT_TAGGING_MESSAGE: 
No tagging message supplied. No tag will be added.
INPUT_PUSH_OPTIONS: 
remote: error: GH006: Protected branch update failed for refs/heads/main.        
remote: error: Changes must be made through the merge queue Changes must be made through a pull request.        
To https://github.com/dbt-labs/dbt-utils
 ! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'https://github.com/dbt-labs/dbt-utils'
Error: Invalid status code: 1
    at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/index.js:17:19)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1[100](https://github.com/dbt-labs/dbt-utils/actions/runs/8806875901/job/24172640397#step:4:101):16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
  code: 1
}
Error: Invalid status code: 1
    at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/index.js:17:19)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

System information

N/A

Additional context

The root cause appears to be our branch protection rules:

remote: error: GH006: Protected branch update failed for refs/heads/main.        
remote: error: Changes must be made through the merge queue Changes must be made through a pull request.

Are you interested in contributing the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant