From 83aff9ca5d1955649622db66e27dea853eba6e42 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 8 Nov 2023 11:15:31 +0100 Subject: [PATCH] build(gha): fix permission denied error --- .github/actions/release/action.yml | 5 +++-- .github/workflows/release.yml | 2 ++ .github/workflows/test.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 6b919c60..e3703906 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -18,8 +18,9 @@ runs: #language=sh run: | yarn pdk-builder release \ - --root-command="docker run --rm -v $PWD:/app -w /app ${{ inputs.image }}" \ - --version ${{ inputs.version }} -vvv + --version ${{ inputs.version }} \ + --root-command="docker run -t --user $(id -u):$(id -g) -v $PWD:/app -w /app ${{ inputs.image }}" \ + -v - name: 'Upload build artifacts' uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18291211..f3c9fbcd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,8 @@ jobs: - uses: myparcelnl/actions/semantic-release@v3 id: release + env: + PDK_ROOT_COMMAND: 'docker run -t --user $(id -u):$(id -g) -v $PWD:/app -w /app ${{ steps.build.outputs.image }}' with: token: ${{ steps.credentials.outputs.token }} write-summary: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f5997156..74d6ad40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,7 +63,7 @@ jobs: shell: bash #language=sh run: | - docker run \ + docker run -t \ --volume $PWD:/app \ ${{ steps.setup.outputs.image }} \ php -dpcov.enabled=1 \