Skip to content

Commit 00ee1f7

Browse files
committed
Try fix file premissions
ref: actions/deploy-pages#188
1 parent afe513b commit 00ee1f7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ runs:
101101
uses: actions/configure-pages@v2
102102
if: ${{ inputs.publish == 'true' }}
103103

104+
- name: Fix file permissions
105+
shell: sh
106+
if: runner.os == 'Linux'
107+
run: |
108+
chmod -c -R +rX "$INPUT_PATH" |
109+
while read line; do
110+
echo "::warning title=Invalid file permissions automatically fixed::$line"
111+
done
112+
env:
113+
INPUT_PATH: ${{ steps.build.outputs.artifact }}
114+
104115
- name: Upload artifact
105116
uses: actions/upload-pages-artifact@v1
106117
if: ${{ inputs.publish == 'true' }}

0 commit comments

Comments
 (0)