question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"/usr/bin/git' failed with exit code 128"

See original GitHub issue

Action Fails with ~

at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:210:5) at Pipe.<anonymous> (net.js:659:12) (node:2675) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) Using "angular" preset Using "chore(release): {version}" as commit message Using "Conventional Changelog Action" as git user.name Using "conventional.changelog.action@github.com" as git user.email Using "5" release count Using "./package.json" as version file Using "version" as version path Using "v" as tag prefix Using "CHANGELOG.md" as output file Using "" as config file Skipping empty releases is "enabled" Skipping the update of the version file is "disabled" Pull to make sure we have the full git history /usr/bin/git config user.name Conventional Changelog Action /usr/bin/git config user.email conventional.changelog.action@github.com /usr/bin/git remote set-url origin ***github.com/Kimba666/changelogs.git /usr/bin/git pull --unshallow --tags --ff-only fatal: not a git repository (or any of the parent directories): .git fatal: not in a git directory fatal: not in a git directory fatal: not a git repository (or any of the parent directories): .git ##[error]The process '/usr/bin/git' failed with exit code 128

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
TriPSscommented, Aug 31, 2020

@Kimba666 Np 😃.

1reaction
TriPSscommented, Aug 31, 2020

A couple of points 😃

  1. You need the checkout step, this is needed to checkout the git repo
  2. Personally i would not run this action on a PR or Push but on a merge to master like the example below
  3. I would add paths-ignore to prevent the action running if only the package.json or CHANGELOG.md is changed, see example below.
name: Release

on:
  push:
    branches:
      - master
    paths-ignore:
      - 'package.json'
      - 'CHANGELOG.md'

jobs:
  release:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Conventional Changelog Action
        id: changelog
        uses: TriPSs/conventional-changelog-action@v3
        with:
          github-token: ${{ secrets.TOKEN_GITHUB }}

Hopes this helps you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The process '/usr/bin/git' failed with exit code 128 · Issue ...
Error: Process completed with exit code 1. and warning: Warning: The process '/usr/bin/git' failed with exit code 128. But it looks like Rubocup ......
Read more >
VSTS Git Fetch Failed with exit code: 128 - Stack Overflow
Another possible cause of the "Git fetch failed with exit code: 128" error message - it happened to us for pull requests builds...
Read more >
Upon browsing a specific repo, an "500 exited with code 0 ...
CommandFailedException: '/usr/bin/git cat-file -p refs/heads/master:.gitmodules' exited with code 128 saying: fatal: path '.gitmodules' does ...
Read more >
Issue deploying Hugo site to github pages, using github actions
However, I'm getting an error on the deployment, which is as follows: ... failed with "The process '/usr/bin/git' failed with exit code 128"....
Read more >
returned status code 128: Cloning....No protocol specified
ERROR : Cause: Error performing command: /usr/bin/git clone --progress - ... /var/lib/jenkins/workspace/test" returned status code 128: Cloning
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found