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
|
shell: sh
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
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 \
|
tar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
--directory "$INPUT_PATH" \
|
--directory "$INPUT_PATH" \
|
||||||
@@ -33,7 +36,10 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
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 \
|
gtar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
--directory "$INPUT_PATH" \
|
--directory "$INPUT_PATH" \
|
||||||
|
|||||||
Reference in New Issue
Block a user