From c16f6405a679d32924bb7c7b87d815d0bf1868e7 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Fri, 6 Dec 2024 14:55:34 +0800 Subject: [PATCH] fix(renovate): chown due to cache --- .github/workflows/renovate.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index bf436bd8..bb3a8ef0 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -71,14 +71,20 @@ jobs: with: token: "${{ steps.oauth-token.outputs.token }}" - - name: Override default config from dispatch variables + - name: Glue + uses: renovatebot/github-action@936628dfbff213ab2eb95033c5e123cfcaf09ebb # v41.0.5 shell: bash run: | + # Override default config from dispatch variables echo "RENOVATE_DRY_RUN=${{ github.event.inputs.dryRun || env.RENOVATE_DRY_RUN }}" >> "${GITHUB_ENV}" echo "LOG_LEVEL=${{ github.event.inputs.logLevel || env.LOG_LEVEL }}" >> "${GITHUB_ENV}" echo "RENOVATE_REPOSITORY_CACHE=${{ github.event.inputs.cache || env.RENOVATE_REPOSITORY_CACHE }}" >> "${GITHUB_ENV}" if [[ ! -z "${{ github.event.inputs.paths }}" ]]; then echo "RENOVATE_INCLUDE_PATHS=${{ github.event.inputs.paths }}" >> "${GITHUB_ENV}"; fi if [[ ! -z "${{ github.event.inputs.managers }}" ]]; then echo "RENOVATE_ENABLED_MANAGERS=${{ github.event.inputs.managers }}" >> "${GITHUB_ENV}"; fi + # chown /tmp/renovate due to cache screwing permissions + mkdir -p /tmp/renovate + id + chown -R $(id -u):$(id -g) /tmp/renovate - name: Renovate Cache id: renovate-cache