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

BUG: Attempted to run an interactive setup in non TTY environment. #77

Open
jochman opened this issue Mar 21, 2023 · 4 comments
Open

BUG: Attempted to run an interactive setup in non TTY environment. #77

jochman opened this issue Mar 21, 2023 · 4 comments

Comments

@jochman
Copy link

jochman commented Mar 21, 2023

I'm using a very simple workflow:

name: Deploy
on:
  push:
    branches:
      - main
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: serverless/[email protected]
        env:
          SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}

and I'm getting:

Error:
Attempted to run an interactive setup in non TTY environment.
If that's intended, run with the SLS_INTERACTIVE_SETUP_ENABLE=1 environment variable
@Emyboy
Copy link

Emyboy commented May 4, 2023

I'm getting same error when tying to create a new project

image

@ryanlawson
Copy link

You need to supply arguments with args. The action just runs serverless so it's expecting user input.

name: Deploy
on:
  push:
    branches:
      - main
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: serverless/[email protected]
        args: deploy
        env:
          SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}

@ryanlawson
Copy link

Created PR #90 to enforce args requirement programmatically.

@BGarber42
Copy link

I get this error while using args

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

4 participants