Skip to content

Commit

Permalink
Fix permissions of output folder (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored Jan 17, 2024
1 parent f1dbef0 commit 899f8e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ runs:
- name: Setup environment
shell: bash
run: |
# Ensure node_modules folder will have correct permissions
mkdir -p ${{github.action_path}}/node_modules
# Ensure parent directory containing output file exists
mkdir -p $(dirname "${{ github.workspace }}/${{ inputs.output }}")
# Ensure docker container can write this workspace as an unprivileged user
chmod ugoa+rw -R ${{ github.workspace }} ${{github.action_path}}
Expand All @@ -71,9 +75,6 @@ runs:
${{ inputs.customizations }}
__EOF__
# Ensure parent directory of output file exists
mkdir -p $(dirname "${{ github.workspace }}/${{ inputs.output }}")
# Prepare inputs that should be passed to the docker container.
cat<<__EOF__>docker.env
GITHUB_WORKSPACE=${{ github.workspace }}
Expand Down

0 comments on commit 899f8e9

Please sign in to comment.