-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add caching to self-hosted Renovate workflow #509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+23
−1
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eb113d8
feat: add caching to self-hosted Renovate workflow
claude 4d85d96
fix: use stable cache key and delete before save
claude 650dfe5
fix: only save Renovate cache on success
claude db6bc38
fix: skip cache delete on cache miss
claude 30f6127
fix: add custom manager for RENOVATE_VERSION env var
claude f97dc22
fix: move RENOVATE_VERSION custom manager to renovate.json5
claude c8e0301
fix: narrow RENOVATE_VERSION fileMatch to renovate.yml only
claude 411f0af
fix: use run_id in cache key instead of delete-and-recreate
claude 8cbe905
refactor: use unified actions/cache instead of separate restore/save
claude 27d902c
Apply suggestions from code review
erezrokah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,14 @@ | ||
| { | ||
| extends: ["github>cloudquery/.github//.github/renovate-default.json5"], | ||
| customManagers: [ | ||
| { | ||
| customType: "regex", | ||
| fileMatch: ["^\\.github/workflows/renovate\\.yml$"], | ||
| matchStrings: [ | ||
| "RENOVATE_VERSION\\: [\"'](?<currentValue>[^\"']+)[\"']", | ||
| ], | ||
| depNameTemplate: "renovatebot/renovate", | ||
| datasourceTemplate: "github-releases", | ||
| }, | ||
| ], | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,17 +11,27 @@ concurrency: | |
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| RENOVATE_VERSION: "43.46.6" | ||
|
|
||
| jobs: | ||
| renovate: | ||
| runs-on: ubicloud-standard-4 | ||
| timeout-minutes: 180 | ||
| 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 }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works because of https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching#cache-hits-and-misses, GitHub caches are immutable |
||
| restore-keys: | | ||
| renovate-cache-${{ env.RENOVATE_VERSION }}- | ||
erezrokah marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - 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: | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.