From 7800a259b4266a3410d7fef29f9a64c3e8be1bb2 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Fri, 6 Dec 2024 16:10:30 +0800 Subject: [PATCH] fix(renovate): chown due to cache --- .github/workflows/renovate.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index bb3a8ef0..63416e07 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -71,8 +71,18 @@ jobs: with: token: "${{ steps.oauth-token.outputs.token }}" + - name: Renovate Cache + id: renovate-cache + uses: actions/cache@v4 + if: github.event.inputs.cache != 'disabled' + continue-on-error: true + with: + path: "${{ env.GH_CACHE_DIR }}" + key: "renovate-cache-${{ runner.os }}-${{ github.run_id }}" + restore-keys: | + renovate-cache-${{ runner.os }} + - name: Glue - uses: renovatebot/github-action@936628dfbff213ab2eb95033c5e123cfcaf09ebb # v41.0.5 shell: bash run: | # Override default config from dispatch variables @@ -86,17 +96,6 @@ jobs: id chown -R $(id -u):$(id -g) /tmp/renovate - - name: Renovate Cache - id: renovate-cache - uses: actions/cache@v4 - if: github.event.inputs.cache != 'disabled' - continue-on-error: true - with: - path: "${{ env.GH_CACHE_DIR }}" - key: "renovate-cache-${{ runner.os }}-${{ github.run_id }}" - restore-keys: | - renovate-cache-${{ runner.os }} - - name: Renovate uses: renovatebot/github-action@936628dfbff213ab2eb95033c5e123cfcaf09ebb # v41.0.5 with: