Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #34 from actions/change-file-permissions
Before tarring site, set file read permissions
  • Loading branch information
Jess Bees authored and GitHub committed Nov 15, 2022
2 parents e02d70a + 6de1c7a commit 4506126
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yml
Expand Up @@ -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" \
Expand All @@ -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" \
Expand Down

0 comments on commit 4506126

Please sign in to comment.