mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 08:06:18 +00:00
Send a workflow warning when changing file permissions
This commit is contained in:
10
action.yml
10
action.yml
@@ -17,7 +17,10 @@ runs:
|
||||
shell: sh
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
chmod -R +r .
|
||||
for f in $(chmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
|
||||
do
|
||||
echo "::warning::Added read permission to $f"
|
||||
done
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
--directory "$INPUT_PATH" \
|
||||
@@ -33,7 +36,10 @@ runs:
|
||||
shell: sh
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
chmod -R +r .
|
||||
for f in $(gchmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
|
||||
do
|
||||
echo "::warning::Added read permission to $f"
|
||||
done
|
||||
gtar \
|
||||
--dereference --hard-dereference \
|
||||
--directory "$INPUT_PATH" \
|
||||
|
||||
Reference in New Issue
Block a user