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

Fix tput: No value for $TERM and no -T specified error in GitHub Actions pipeline #312

Closed
ThomasSanson opened this issue May 2, 2023 · 2 comments · Fixed by #345
Closed

Comments

@ThomasSanson
Copy link
Contributor

Hello,

I encountered an issue in the GitHub Actions pipeline, where I'm seeing the following error:

tput: No value for $TERM and no -T specified

This error seems to occur due to the lack of a terminal environment in the GitHub Actions runner, which causes the tput command to fail.

In order to resolve this issue, I suggest setting the TERM environment variable in the GitHub Actions workflow file. Here's an example of how to update the workflow file:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Set TERM environment variable
        run: echo "TERM=xterm" >> $GITHUB_ENV
      - name: Checkout repository
        uses: actions/checkout@v2
      - name: Run pipeline commands
        run: |
          # Your pipeline commands here

By setting the TERM environment variable, the tput command should work as expected, and the error should no longer occur. Please let me know if you need any additional information or if you have any suggestions on how to improve this solution.

Thank you for your time and assistance!

@ThomasSanson
Copy link
Contributor Author

@vitabaks
Copy link
Owner

vitabaks commented May 2, 2023

Thanks! I will try to take the time to fix it soon.

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

Successfully merging a pull request may close this issue.

3 participants
@vitabaks @ThomasSanson and others