mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-01 10:09:50 +00:00
2b84f8c13d
As noted in #46242, the `known-actions.ts` file was getting a bit big. Where we have dynamic extractions, using `transform`, we split these into a `<datasource>-dynamic.ts` file. Where we have multiple packages extracted from the same Action, we use `multiple.ts`. Per suggestion from Sebastian, we can break this down by the datasource used by the Action's inputs. We can also try to enforce the structure of the directories by adding a test in each file. Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
19 lines
622 B
TypeScript
19 lines
622 B
TypeScript
import { RustVersionDatasource } from '../../../datasource/rust-version/index.ts';
|
|
import type { KnownActionConfig } from '../types.ts';
|
|
import { valSchema } from './utils.ts';
|
|
|
|
export const rustVersionActions: Record<string, KnownActionConfig> = {
|
|
// https://github.com/dtolnay/rust-toolchain
|
|
'dtolnay/rust-toolchain': {
|
|
datasource: RustVersionDatasource.id,
|
|
packageName: 'rust',
|
|
withSchema: valSchema('toolchain'),
|
|
},
|
|
// https://github.com/moonrepo/setup-rust
|
|
'moonrepo/setup-rust': {
|
|
datasource: RustVersionDatasource.id,
|
|
packageName: 'rust',
|
|
withSchema: valSchema('channel'),
|
|
},
|
|
};
|