Cannot respond 'no' to all prompts from bash command in github action

Viewed 11

I am having some trouble responding to all prompts from a github-action with no.

Example:

- shell: bash
  run: |
    yes no | terraform apply -input=false

I would expect that to work, and does indeed work locally (osx). Instead, the job hangs, and it will eventually timeout, but this is undesirable.

Any thoughts would be appreciated.

0 Answers
Related