github-action
github-action copied to clipboard
BUG: Attempted to run an interactive setup in non TTY environment.
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
I'm getting same error when tying to create a new project

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 }}
Created PR #90 to enforce args requirement programmatically.
I get this error while using args