From d9b026a584cf45d27993e1c0abff074b5497e4c3 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Fri, 6 Dec 2024 19:18:14 +0800 Subject: [PATCH] fix(renovate): sudo chown after cache why do hosted runners have sudo --- .github/workflows/renovate.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index b081a4cd83..5efc2ee6cf 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -71,6 +71,17 @@ 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 shell: bash run: | @@ -85,17 +96,6 @@ jobs: mkdir -p /tmp/renovate sudo chown -R 12021:$(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: