From c2e0caf3fd1e736c9473a12210dc612b615f5e37 Mon Sep 17 00:00:00 2001 From: Michalis Kamburelis Date: Mon, 17 Jun 2024 01:06:20 +0200 Subject: [PATCH] Get TTY when building Docker images See https://github.com/actions/runner/issues/241 --- .github/workflows/update-docker-all.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-docker-all.yml b/.github/workflows/update-docker-all.yml index 04d82c6..8e0773d 100644 --- a/.github/workflows/update-docker-all.yml +++ b/.github/workflows/update-docker-all.yml @@ -19,7 +19,11 @@ on: defaults: run: - shell: bash +# shell: bash + # We need TTY to execute Docker commands. + # GitHub Actions run without a TTY device. This is a workaround to get one, + # based on https://github.com/actions/runner/issues/241#issuecomment-2019042651 + shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"' jobs: build: