Skip to content

Commit 899f8e9

Browse files
authored
Fix permissions of output folder (#4)
1 parent f1dbef0 commit 899f8e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ runs:
5757
- name: Setup environment
5858
shell: bash
5959
run: |
60+
# Ensure node_modules folder will have correct permissions
6061
mkdir -p ${{github.action_path}}/node_modules
6162
63+
# Ensure parent directory containing output file exists
64+
mkdir -p $(dirname "${{ github.workspace }}/${{ inputs.output }}")
65+
6266
# Ensure docker container can write this workspace as an unprivileged user
6367
chmod ugoa+rw -R ${{ github.workspace }} ${{github.action_path}}
6468
@@ -71,9 +75,6 @@ runs:
7175
${{ inputs.customizations }}
7276
__EOF__
7377
74-
# Ensure parent directory of output file exists
75-
mkdir -p $(dirname "${{ github.workspace }}/${{ inputs.output }}")
76-
7778
# Prepare inputs that should be passed to the docker container.
7879
cat<<__EOF__>docker.env
7980
GITHUB_WORKSPACE=${{ github.workspace }}

0 commit comments

Comments
 (0)