Merge pull request #34 from actions/change-file-permissions

Before tarring site, set file read permissions
This commit is contained in:
Jess Bees
2022-11-15 12:37:36 -05:00
committed by GitHub

View File

@@ -17,6 +17,10 @@ runs:
shell: sh
if: runner.os == 'Linux'
run: |
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" \
@@ -32,6 +36,10 @@ runs:
shell: sh
if: runner.os == 'macOS'
run: |
for f in $(chmod -v -R +r .)
do
echo "::warning::Added read permission to $f"
done
gtar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \