Skip to content

Commit

Permalink
Try fix file premissions
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Jun 22, 2023
1 parent afe513b commit 00ee1f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ runs:
uses: actions/configure-pages@v2
if: ${{ inputs.publish == 'true' }}

- name: Fix file permissions
shell: sh
if: runner.os == 'Linux'
run: |
chmod -c -R +rX "$INPUT_PATH" |
while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
env:
INPUT_PATH: ${{ steps.build.outputs.artifact }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
if: ${{ inputs.publish == 'true' }}
Expand Down

0 comments on commit 00ee1f7

Please sign in to comment.