From 15fe4f4080e4f089c3a02edb3474ebbde70955a4 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Fri, 23 Feb 2024 08:04:16 +0100 Subject: [PATCH] Fix grouping lines in GH actions output (#577) --- composite/action.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/composite/action.yml b/composite/action.yml index 9d45dda9..cda1fed0 100644 --- a/composite/action.yml +++ b/composite/action.yml @@ -154,7 +154,7 @@ runs: - name: Check for Python3 id: python run: | - echo '##[group]Check for Python3' + echo '::group::Check for Python3' # we check version here just to execute `python3` with an argument # on Windows, there is a `python3.exe` that is a proxy to trigger installation from app store # command `which python3` finds that, but `python3 -V` does not return the version on stdout @@ -174,7 +174,7 @@ runs: echo "Python that creates venv: $PYTHON_BIN" echo "PYTHON_BIN=$PYTHON_BIN" >> "$GITHUB_ENV" echo "version=$("$PYTHON_BIN" -V)" >> "$GITHUB_OUTPUT" - echo '##[endgroup]' + echo '::endgroup::' shell: bash - name: Detect OS @@ -208,7 +208,7 @@ runs: env: PIP_OPTIONS: ${{ steps.os.outputs.pip-options }} run: | - echo '##[group]Create virtualenv' + echo '::group::Create virtualenv' echo "Python that creates venv: $PYTHON_BIN" echo "Creating virtual environment" @@ -238,24 +238,24 @@ runs: PYTHON_VENV="$("$PYTHON_VENV" -c 'import sys; print(sys.executable)')" echo "Python in venv: $PYTHON_VENV" echo "PYTHON_VENV=$PYTHON_VENV" >> "$GITHUB_ENV" - echo '##[endgroup]' + echo '::endgroup::' shell: bash - name: Install Python dependencies run: | - echo '##[group]Install Python dependencies' + echo '::group::Install Python dependencies' # make sure wheel is installed, which improves installing our dependencies "$PYTHON_VENV" -m pip install wheel "$PYTHON_VENV" -m pip install -r "$GITHUB_ACTION_PATH/../python/requirements.txt" - echo '##[endgroup]' + echo '::endgroup::' shell: bash - name: Publish Test Results id: test-results run: | - echo '##[group]Publish Test Results' + echo '::group::Publish Test Results' "$PYTHON_VENV" "$GITHUB_ACTION_PATH/../python/publish_test_results.py" - echo '##[endgroup]' + echo '::endgroup::' env: GITHUB_TOKEN: ${{ inputs.github_token }} GITHUB_TOKEN_ACTOR: ${{ inputs.github_token_actor }}