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-release is broken #1111

Open
nschonni opened this issue Jul 26, 2022 · 0 comments
Open

Auto-release is broken #1111

nschonni opened this issue Jul 26, 2022 · 0 comments
Labels
automation Changes done to the .github folder bug Functionality that does not work as intended/expected github_actions Pull requests that update Github_actions code keep-unstale The issue will not be marked as stale by the stale-bot

Comments

@nschonni
Copy link
Contributor

Tried playing with the branch rules to see if it could get unstuck, but still getting

[5:31:41 PM] [semantic-release] › ✖  An error occurred while running semantic-release: Error: Command failed with exit code 1: git push --tags https://github.com/htmlhint/HTMLHint HEAD:master
remote: error: GH006: Protected branch update failed for refs/heads/master.        
remote: error: Changes must be made through a pull request.        
To https://github.com/htmlhint/HTMLHint
 ! [remote rejected] HEAD -> master (protected branch hook declined)
Error: Error: Command failed with exit code 1: git push --tags https://github.com/htmlhint/HTMLHint HEAD:master
remote: error: GH006: Protected branch update failed for refs/heads/master.        
remote: error: Changes must be made through a pull request.        
To https://github.com/htmlhint/HTMLHint
 ! [remote rejected] HEAD -> master (protected branch hook declined)
error: failed to push some refs to 'https://github.com/htmlhint/HTMLHint'
error: failed to push some refs to 'https://github.com/htmlhint/HTMLHint'
    at makeError (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async push (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/@semantic-release/git/lib/git.js:51:3)
    at async module.exports (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/@semantic-release/git/lib/prepare.js:69:5)
    at async prepare (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/@semantic-release/git/index.js:28:3)
    at async validator (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/semantic-release/lib/plugins/normalize.js:34:24)
    at async /home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/semantic-release/lib/plugins/pipeline.js:37:34
    at async /home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/semantic-release/lib/plugins/pipeline.js:31:3
    at async Object.pluginsConf.<computed> [as prepare] (/home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/semantic-release/lib/plugins/index.js:80:11) {
  shortMessage: 'Command failed with exit code 1: git push --tags https://github.com/htmlhint/HTMLHint HEAD:master',
  command: 'git push --tags https://github.com/htmlhint/HTMLHint HEAD:master',
  escapedCommand: 'git push --tags "https://github.com/htmlhint/HTMLHint" "HEAD:master"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: 'remote: error: GH006: Protected branch update failed for refs/heads/master.        \n' +
    'remote: error: Changes must be made through a pull request.        \n' +
    'To [https://github.com/htmlhint/HTMLHint\n](https://github.com/htmlhint/HTMLHint/n)' +
    ' ! [remote rejected] HEAD -> master (protected branch hook declined)\n' +
    "error: failed to push some refs to 'https://github.com/htmlhint/HTMLHint'",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false,
  pluginName: '@semantic-release/git'
}

Not sure if it's related to the PAT permissions or something else

@coliff coliff added bug Functionality that does not work as intended/expected automation Changes done to the .github folder github_actions Pull requests that update Github_actions code keep-unstale The issue will not be marked as stale by the stale-bot labels Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Changes done to the .github folder bug Functionality that does not work as intended/expected github_actions Pull requests that update Github_actions code keep-unstale The issue will not be marked as stale by the stale-bot
Projects
None yet
Development

No branches or pull requests

2 participants