From 3cb2c0f93b2a09cb8970a4b003cc531dfa990c1d Mon Sep 17 00:00:00 2001 From: Jess Bees Date: Mon, 7 Nov 2022 12:58:14 -0500 Subject: [PATCH] Before tarring site, set file read permissions Pages DFS needs the "group read" permission set on any file it serves, so add read permission before tarring to prevent unreadable files from being deployed. This only applies to files that are built on an actions runner, not files that are cloned from a git repoitory, because git's permissions are limited to the equivalents of chmod 644 and 755. --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index b04808d..1369ae1 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,7 @@ runs: shell: sh if: runner.os == 'Linux' run: | + chmod -R +r . tar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -32,6 +33,7 @@ runs: shell: sh if: runner.os == 'macOS' run: | + chmod -R +r . gtar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \