Skip to content

Commit 32339e6

Browse files
committed
Group action setup log output
The setup of the action produces a significant amount of output, which is printed in the worflow run logs. This output is not of interest to the user so long as the action itself is working correctly so it is only noise in their logs. A log group was previously used to collapse all that setup output in the logs. This was inadvertently removed during recent development work. It is hereby restored.
1 parent a1ffe98 commit 32339e6

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

action.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,30 @@ runs:
5454
id: system-user-site-packages
5555
shell: bash
5656
run: |
57+
# Get system Python "user site-packages" path.
5758
echo "path=$(python -m site --user-site)" >> $GITHUB_OUTPUT
5859
5960
- name: Install Python
6061
uses: actions/setup-python@v4.5.0
6162
with:
6263
python-version-file: ${{ github.action_path }}/.python-version
6364

64-
- name: Install Poetry
65+
- name: Action setup
6566
shell: bash
67+
working-directory: ${{ github.action_path }}
6668
run: |
69+
echo "::group::Action setup"
70+
71+
# Install Poetry.
6772
pipx install \
6873
--python "$(which python)" \
6974
poetry==1.4.0
7075
71-
- name: Install Python Dependencies
72-
shell: bash
73-
working-directory: ${{ github.action_path }}
74-
run: |
76+
# Install Python dependencies.
7577
poetry install \
7678
--only main,external
7779
78-
- name: Make user-installed Python packages available to platforms
79-
shell: bash
80-
working-directory: ${{ github.action_path }}
81-
run: |
80+
# Make user-installed Python packages available to platforms.
8281
readonly PYTHON_ENVIRONMENT_PATH="$(
8382
poetry env info \
8483
--path
@@ -92,6 +91,9 @@ runs:
9291
"${{ steps.system-user-site-packages.outputs.path }}" > \
9392
"${VENV_SITE_PACKAGES_PATH}/system-user-site-packages.pth"
9493
94+
# Terminate action setup group
95+
echo "::endgroup::"
96+
9597
- name: Run script
9698
shell: bash
9799
env:
@@ -108,5 +110,6 @@ runs:
108110
INPUT_SKETCHES-REPORT-PATH: ${{ inputs.sketches-report-path }}
109111
working-directory: ${{ github.action_path }}
110112
run: |
113+
# Run action
111114
poetry run \
112115
python compilesketches/compilesketches.py

0 commit comments

Comments
 (0)