Added logging.
This commit is contained in:
@@ -47,6 +47,11 @@ runs:
|
||||
- name: "Build the pack command."
|
||||
id: command
|
||||
run: |
|
||||
NAME="Dotnet Pack"
|
||||
echo "::group::$NAME - Inputs"
|
||||
echo "${{ toJSON(inputs) }}"
|
||||
echo "::endgroup::"
|
||||
|
||||
#https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/versioning
|
||||
MMP_VERSION="${{ steps.version.outputs.major || 0 }}.${{ steps.version.outputs.minor || 0 }}"
|
||||
|
||||
|
||||
@@ -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