-
Notifications
You must be signed in to change notification settings - Fork 7
Add Renovate for automated tool updates #62
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
Open
leighmcculloch
wants to merge
15
commits into
main
Choose a base branch
from
auto-update-tools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+142
−48
Open
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7a925b8
auto update tools
leighmcculloch b46597e
add pull request trigger to renovate workflow
leighmcculloch bafd5f7
update renovate workflow env vars
leighmcculloch 855c291
make renovate run on branch and dry-run prs
leighmcculloch 69e8a44
read renovate config from current branch
leighmcculloch 0fbbc2f
feed branch config to renovate via config file
leighmcculloch 6b7c598
update renovate action version
leighmcculloch 380d200
Merge branch 'main' into auto-update-tools
leighmcculloch 2d81caf
refactor build matrix needs prepare step
leighmcculloch 4682d04
split tools config into cargo and go files
leighmcculloch 35fb18a
simplify tool configs to bare arrays
leighmcculloch 5da709b
freeze wasm-cs from auto-update to keep release test valid
leighmcculloch 5bfd150
remove unused workflow_call trigger from build
leighmcculloch b792fc1
set minimum permissions for cargo and go jobs
leighmcculloch c43467f
set minimum permissions for all build jobs
leighmcculloch 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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Renovate | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 6 * * *' # daily, 06:00 UTC | ||
| workflow_dispatch: | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
|
|
||
| renovate: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: renovatebot/github-action@693b9ef15eec82123529a37c782242f091365961 #v46.1.14 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| # Use the checked-out config (the branch being run on) as Renovate's | ||
| # config, mounted into the container — no config needed on the default | ||
| # branch. | ||
| configurationFile: renovate.json5 | ||
| env: | ||
| RENOVATE_REPOSITORIES: ${{ github.repository }} | ||
| # Operate on the branch that triggered the run (the PR's source branch | ||
| # on pull_request, otherwise the branch the workflow ran on). | ||
| RENOVATE_BASE_BRANCH_PATTERNS: '["${{ github.head_ref || github.ref_name }}"]' | ||
| # Don't require a config on the default branch, and never onboard. | ||
| RENOVATE_REQUIRE_CONFIG: optional | ||
| RENOVATE_ONBOARDING: 'false' | ||
| # Dry run on pull requests. | ||
| RENOVATE_DRY_RUN: ${{ github.event_name == 'pull_request' && 'full' || '' }} | ||
| LOG_LEVEL: ${{ github.event_name == 'pull_request' && 'debug' || 'info' }} | ||
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 |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| $schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
| extends: ['config:recommended'], | ||
|
|
||
| // Hold every update until the release is at least 7 days old, and always | ||
| // target the newest version that passes that age check rather than the | ||
| // absolute latest (so we never jump onto a brand-new release). | ||
| minimumReleaseAge: '7 days', | ||
| internalChecksFilter: 'strict', | ||
|
|
||
| customManagers: [ | ||
| { | ||
| // cargo tools installed via `cargo install` in the build matrix. | ||
| customType: 'regex', | ||
| managerFilePatterns: ['/^\\.github/workflows/build\\.yml$/'], | ||
| matchStrings: ["name: (?<depName>[\\w-]+)\\s+version: '(?<currentValue>[^']+)'"], | ||
| datasourceTemplate: 'crate', | ||
| }, | ||
|
leighmcculloch marked this conversation as resolved.
|
||
| { | ||
| // go tools installed via `go install` in the build matrix. The version is | ||
| // stored without a leading `v`, so strip it from the upstream tag. | ||
| customType: 'regex', | ||
| managerFilePatterns: ['/^\\.github/workflows/build\\.yml$/'], | ||
| matchStrings: ["import-path: (?<depName>github\\.com/[^/\\s]+/[^/\\s]+)[^\\n]*\\s+version: '(?<currentValue>[^']+)'"], | ||
| datasourceTemplate: 'go', | ||
| extractVersionTemplate: '^v?(?<version>.+)$', | ||
| }, | ||
|
leighmcculloch marked this conversation as resolved.
|
||
| ], | ||
| } | ||
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.