From 238a66ac743cbe97df3e7ef17ac954841d718022 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Sun, 24 Dec 2023 17:04:51 -0700 Subject: [PATCH] Make sure not to eat workflow control messages --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 2379b0d..e5cce97 100644 --- a/action.yml +++ b/action.yml @@ -79,14 +79,20 @@ runs: gha=${{ runner.temp }}/rira context: ${{ github.workspace }}/.rm-docker-repo file: ${{ runner.temp }}/rira/build.Dockerfile - - name: Build codexctl + - name: Run container shell: bash run: | cd "$workspace" docker run \ --rm \ -v "$src_path":/src \ - rm-docker:run-in-remarkable-action + rm-docker:run-in-remarkable-action \ + 2>&1 \ + | while read -r line; do + # Make sure output is parsed one line at a time just in case there are + # workflow control messages (e.g. ::error:: or ::warning::) + echo "$line" + done env: src_path: ${{ inputs.path }} workspace: ${{ github.workspace }}