diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 90ab200..d19edbc 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,3 +1,14 @@ { extends: ["github>cloudquery/.github//.github/renovate-default.json5"], + customManagers: [ + { + customType: "regex", + fileMatch: ["^\\.github/workflows/renovate\\.yml$"], + matchStrings: [ + "RENOVATE_VERSION\\: [\"'](?[^\"']+)[\"']", + ], + depNameTemplate: "renovatebot/renovate", + datasourceTemplate: "github-releases", + }, + ], } diff --git a/.github/self-hosted-renovate.js b/.github/self-hosted-renovate.js index 6a1dcae..920dbb5 100644 --- a/.github/self-hosted-renovate.js +++ b/.github/self-hosted-renovate.js @@ -1,6 +1,7 @@ module.exports = { autodiscover: true, onboarding: false, + repositoryCache: "enabled", hostRules: [ { matchHost: "maven.pkg.github.com", diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index f0af210..6b15683 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -11,6 +11,9 @@ concurrency: permissions: contents: read +env: + RENOVATE_VERSION: "43.46.6" + jobs: renovate: runs-on: ubicloud-standard-4 @@ -18,10 +21,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + - name: Renovate cache + uses: actions/cache@v4 + with: + path: /tmp/renovate/cache + key: renovate-cache-${{ env.RENOVATE_VERSION }}-${{ github.run_id }} + restore-keys: | + renovate-cache-${{ env.RENOVATE_VERSION }}- - name: Self-hosted Renovate uses: renovatebot/github-action@v46.1.2 with: - renovate-version: "43.46.6" + renovate-version: ${{ env.RENOVATE_VERSION }} configurationFile: .github/self-hosted-renovate.js token: ${{ secrets.GH_CQ_BOT }} env: