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

hub: not found - exit code 127 #49

Closed
toschder opened this issue Aug 3, 2023 · 7 comments
Closed

hub: not found - exit code 127 #49

toschder opened this issue Aug 3, 2023 · 7 comments
Assignees

Comments

@toschder
Copy link

toschder commented Aug 3, 2023

Hi
I tried this action in my workflow this way:

      - name: Create a Release
        uses: elgohr/Github-Release-Action@v4
        env:
          GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
        with:
          title: "v/${{ steps.release.outputs.version }}"

When running it fails with

Run $GITHUB_ACTION_PATH/entrypoint.sh
  $GITHUB_ACTION_PATH/entrypoint.sh
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    CINEXT_PIPELINE: MajorRelease
    JAVA_HOME: /home/runner/actions-runner/_work/_tool/Java_Zulu_jdk/11.0.20-8/x64
    JAVA_HOME_11_X64: /home/runner/actions-runner/_work/_tool/Java_Zulu_jdk/11.0.20-8/x64
    GITHUB_TOKEN: 
    INPUT_TITLE: v/23.5.1
/home/runner/actions-runner/_work/_actions/elgohr/Github-Release-Action/v4/entrypoint.sh: 2: hub: not found
Error: Process completed with exit code 127.

Do I miss something or how can this be fixed ?

@elgohr
Copy link
Owner

elgohr commented Aug 3, 2023

Do you run the action on a self-hosted runner? GitHub runners should a preinstalled hub (https://github.com/mislav/hub)
On this runner it’s missing or not on the PATH hub: not found

@JoeStead
Copy link

JoeStead commented Oct 5, 2023

We have recently started getting this sporadically on our actions too. Previously it was working fine and nothing has changed

@JoeStead
Copy link

JoeStead commented Oct 5, 2023

Hub is no longer installed by default: actions/runner-images#8362

@elgohr
Copy link
Owner

elgohr commented Oct 5, 2023

@JoeStead thank you for pointing out - totally missed this one.
https://github.com/elgohr/Github-Release-Action/releases/tag/v5 should fix this.

@JoeStead
Copy link

JoeStead commented Oct 5, 2023

Awesome, thanks for resolving so quick!

@elgohr
Copy link
Owner

elgohr commented Oct 5, 2023

@JoeStead Could you please confirm the fix? I really like to have this from a user, before closing the issue

@JoeStead
Copy link

JoeStead commented Oct 5, 2023

Yep, it's all working well now, thanks!

@elgohr elgohr closed this as completed Oct 5, 2023
ByronMayne added a commit to ByronMayne/SourceGenerator.Foundations that referenced this issue Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants