fix(renovate): sudo chown after cache

why do hosted runners have sudo
This commit is contained in:
JJGadgets
2024-12-06 19:18:14 +08:00
parent fe2001c61e
commit d9b026a584

View File

@@ -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: