github-pages-deploy-action: The process 'git' failed with exit code 128

Describe the bug

The action throws an error The process 'git' failed with exit code 128

Reproduce

Simply by deploying to a custom branch

Logs

git init
Reinitialized existing Git repository in /home/runner/work/redacted/redacted/.git/
git config user.name redacted
git config user.email redacted@redacted.io
git ls-remote --heads https://***@github.com/redacted/redacted.git staging | wc -l
9060ab1802d8825270a2dd031f97c34ad99e4153	refs/heads/staging
git switch master
Switched to a new branch 'master'
M	components/redacted/redacted.vue
Branch 'master' set up to track remote branch 'master' from 'origin'.
git fetch origin
fatal: could not read Username for 'https://github.com': No such device or address
The deployment encountered an error. āŒ
##[error]The process 'git' failed with exit code 128
Completed Deployment āœ…
##[error]Node run failed with exit code 1

Additional Comments

This is due to git fetch origin change from the last update Pinning our workfile to use 3.1.1 fixes this.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 21 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@JamesIves I can confirm that the newly released action works 😃 Thank you for the quick fix.

@releases/v3-test works perfect

I’m getting this in 3.1.4, has it regressed?