Skip to content

Commit aed41c1

Browse files
committed
fix: run find with root permissions
1 parent 89c6c4b commit aed41c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ runs:
113113
114114
# ensure mount path exists before the action
115115
sudo mkdir -p "${BUILD_MOUNT_PATH}"
116-
find "${BUILD_MOUNT_PATH}" -maxdepth 0 ! -empty -exec echo 'WARNING: directory [{}] is not empty, data loss might occur. Content:' \; -exec ls -al "{}" \;
116+
sudo find "${BUILD_MOUNT_PATH}" -maxdepth 0 ! -empty -exec echo 'WARNING: directory [{}] is not empty, data loss might occur. Content:' \; -exec ls -al "{}" \;
117117
118118
echo "Removing unwanted software... "
119119
if [[ ${{ inputs.remove-dotnet }} == 'true' ]]; then

0 commit comments

Comments
 (0)