Added logging.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user