Added logging.

This commit is contained in:
2025-07-01 13:55:53 -07:00
parent c4ef52da0f
commit 47f48d4e8c
2 changed files with 14 additions and 2 deletions

View File

@@ -19,6 +19,11 @@ runs:
- name: "Determine UID and GID."
id: ids
run: |
NAME="Chown"
echo "::group::$NAME - Inputs"
echo "${{ toJSON(inputs) }}"
echo "::endgroup::"
USER_UID="${{ inputs.uid }}"
USER_GID="${{ inputs.gid }}"
if [[ -z "$USER_UID" ]]; then
@@ -28,10 +33,12 @@ runs:
USER_GID=$(id -g)
fi
echo $USER_UID:$USER_GID
echo "uid=$USER_UID" >> "$GITHUB_OUTPUT"
echo "gid=$USER_GID" >> "$GITHUB_OUTPUT"
echo "::group::$NAME - Outputs"
cat "$GITHUB_OUTPUT"
echo "::endgroup::"
shell: bash
- name: "Take ownership of output."
uses: virtualitics/actions/distros/busybox@master