Skip to content

Commit 734f731

Browse files
committed
Chown everything to test the volume mount permissions
1 parent cb6947f commit 734f731

File tree

1 file changed

+31
-19
lines changed

1 file changed

+31
-19
lines changed

action.yml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
inputs:
2-
script:
3-
description: 'Script to be passed to the docker image'
4-
required: true
2+
script:
3+
description: "Script to be passed to the docker image"
4+
required: true
55

66
runs:
7-
using: 'composite'
8-
steps:
9-
- run: |-
10-
docker pull "ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)"
11-
shell: bash
7+
using: "composite"
8+
steps:
9+
- name: Pull docker image
10+
run: |-
11+
docker pull "ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)"
12+
shell: bash
1213

13-
- run: |-
14-
docker run --rm \
15-
-v ${{ github.workspace }}:/github/workspace/ \
16-
-e EM_CACHE=/github/workspace/.emscripten_cache \
17-
-e YARN_CACHE_FOLDER=/github/workspace/.yarn_cache \
18-
-e CARGO_HOME=/github/workspace/.cargo \
19-
-e CCACHE_DIR=/github/workspace/.ccache \
20-
-e CCACHE_BASEDIR=/github/workspace \
21-
"ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" \
22-
bash -c "${{ inputs.script }}"
23-
shell: bash
14+
- name: Fix permissions
15+
run: |-
16+
sudo chown -R $(id -u):$(id -g) ${{ github.workspace }}
17+
shell: bash
18+
19+
- name: Run script
20+
run: |-
21+
docker run --rm \
22+
-v ${{ github.workspace }}:/github/workspace/:delegated \
23+
-e EM_CACHE=/github/workspace/.emscripten_cache \
24+
-e YARN_CACHE_FOLDER=/github/workspace/.yarn_cache \
25+
-e CARGO_HOME=/github/workspace/.cargo \
26+
-e CCACHE_DIR=/github/workspace/.ccache \
27+
-e CCACHE_BASEDIR=/github/workspace \
28+
"ghcr.io/duckdb/duckdb-wasm-ci-env:$(cat ${{ github.action_path }}/TAG)" \
29+
bash -c "${{ inputs.script }}"
30+
shell: bash
31+
32+
- name: Fix permissions
33+
run: |-
34+
sudo chown -R $(id -u):$(id -g) ${{ github.workspace }}
35+
shell: bash

0 commit comments

Comments
 (0)