mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 16:16:18 +00:00
Print warnings about changed file permissions in bulk
This will avoid mangled output when files have spaces within them.
This commit is contained in:
10
action.yml
10
action.yml
@@ -17,9 +17,8 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
for f in $(chmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
|
chmod -c -R +r . | while read line; do
|
||||||
do
|
echo "::warning title=Changed permissions on a file::$line"
|
||||||
echo "::warning::Added read permission to $f"
|
|
||||||
done
|
done
|
||||||
tar \
|
tar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
@@ -36,9 +35,8 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
for f in $(chmod -v -R +r .)
|
chmod -v -R +r . | while read line; do
|
||||||
do
|
echo "::warning title=Changed permissions on a file::$line"
|
||||||
echo "::warning::Added read permission to $f"
|
|
||||||
done
|
done
|
||||||
gtar \
|
gtar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
|
|||||||
Reference in New Issue
Block a user