Skip to content

Commit

Permalink
Fix grouping lines in GH actions output (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi authored Feb 23, 2024
1 parent 783d23b commit 15fe4f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 15fe4f4

Please sign in to comment.