github-action icon indicating copy to clipboard operation
github-action copied to clipboard

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

Open jochman opened this issue 2 years ago • 4 comments

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

jochman avatar Mar 21 '23 08:03 jochman

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

image

ifeora-emeka avatar May 04 '23 17:05 ifeora-emeka

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 avatar May 17 '24 23:05 ryanlawson

Created PR #90 to enforce args requirement programmatically.

ryanlawson avatar May 18 '24 21:05 ryanlawson

I get this error while using args

BGarber42 avatar Nov 07 '24 22:11 BGarber42