Added logging.
This commit is contained in:
@@ -47,6 +47,11 @@ runs:
|
|||||||
- name: "Build the pack command."
|
- name: "Build the pack command."
|
||||||
id: command
|
id: command
|
||||||
run: |
|
run: |
|
||||||
|
NAME="Dotnet Pack"
|
||||||
|
echo "::group::$NAME - Inputs"
|
||||||
|
echo "${{ toJSON(inputs) }}"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
#https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/versioning
|
#https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/versioning
|
||||||
MMP_VERSION="${{ steps.version.outputs.major || 0 }}.${{ steps.version.outputs.minor || 0 }}"
|
MMP_VERSION="${{ steps.version.outputs.major || 0 }}.${{ steps.version.outputs.minor || 0 }}"
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,11 @@ runs:
|
|||||||
- name: "Determine UID and GID."
|
- name: "Determine UID and GID."
|
||||||
id: ids
|
id: ids
|
||||||
run: |
|
run: |
|
||||||
|
NAME="Chown"
|
||||||
|
echo "::group::$NAME - Inputs"
|
||||||
|
echo "${{ toJSON(inputs) }}"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
USER_UID="${{ inputs.uid }}"
|
USER_UID="${{ inputs.uid }}"
|
||||||
USER_GID="${{ inputs.gid }}"
|
USER_GID="${{ inputs.gid }}"
|
||||||
if [[ -z "$USER_UID" ]]; then
|
if [[ -z "$USER_UID" ]]; then
|
||||||
@@ -28,10 +33,12 @@ runs:
|
|||||||
USER_GID=$(id -g)
|
USER_GID=$(id -g)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $USER_UID:$USER_GID
|
|
||||||
|
|
||||||
echo "uid=$USER_UID" >> "$GITHUB_OUTPUT"
|
echo "uid=$USER_UID" >> "$GITHUB_OUTPUT"
|
||||||
echo "gid=$USER_GID" >> "$GITHUB_OUTPUT"
|
echo "gid=$USER_GID" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
echo "::group::$NAME - Outputs"
|
||||||
|
cat "$GITHUB_OUTPUT"
|
||||||
|
echo "::endgroup::"
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: "Take ownership of output."
|
- name: "Take ownership of output."
|
||||||
uses: virtualitics/actions/distros/busybox@master
|
uses: virtualitics/actions/distros/busybox@master
|
||||||
|
|||||||
Reference in New Issue
Block a user