Skip to content

Commit 4506126

Browse files
authored
Merge pull request #34 from actions/change-file-permissions
Before tarring site, set file read permissions
2 parents e02d70a + 6de1c7a commit 4506126

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ runs:
1717
shell: sh
1818
if: runner.os == 'Linux'
1919
run: |
20+
for f in $(chmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
21+
do
22+
echo "::warning::Added read permission to $f"
23+
done
2024
tar \
2125
--dereference --hard-dereference \
2226
--directory "$INPUT_PATH" \
@@ -32,6 +36,10 @@ runs:
3236
shell: sh
3337
if: runner.os == 'macOS'
3438
run: |
39+
for f in $(chmod -v -R +r .)
40+
do
41+
echo "::warning::Added read permission to $f"
42+
done
3543
gtar \
3644
--dereference --hard-dereference \
3745
--directory "$INPUT_PATH" \

0 commit comments

Comments
 (0)