HTMLHint
HTMLHint copied to clipboard
Auto-release is broken
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