mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 23:39:13 +00:00
e983daa75d
* feat(github-actions): Support non-semver refs (tags and branches) * refactor(github-actions): drop ref= prefix, use bare token comments Address review feedback: use bare `# cargo-llvm-cov` instead of `# ref=cargo-llvm-cov` for non-semver pin comments, consistent with how version comments work (`# v4.0.0`). - Rename pinnedVersionRe -> pinTokenRe, add bareTokenRe fallback - Add `ref` field to CommentData, separate from pinnedVersion - Guard replaceString extension to only use ref for SHA-pinned actions - Remove redundant autoReplaceStringTemplate override - Deduplicate versionLikeRe (export from parse.ts) - Add datasource assertions to non-semver tests * refactor(github-actions): remove unreachable parseComment branch * test(github-actions): add coverage for non-version ref fallback
26 lines
928 B
TypeScript
26 lines
928 B
TypeScript
import type { Category } from '../../../constants/index.ts';
|
|
import { GiteaTagsDatasource } from '../../datasource/gitea-tags/index.ts';
|
|
import { GithubDigestDatasource } from '../../datasource/github-digest/index.ts';
|
|
import { GithubRunnersDatasource } from '../../datasource/github-runners/index.ts';
|
|
import { GithubTagsDatasource } from '../../datasource/github-tags/index.ts';
|
|
|
|
export { extractPackageFile } from './extract.ts';
|
|
|
|
export const displayName = 'GitHub Actions';
|
|
export const url = 'https://docs.github.com/en/actions';
|
|
export const categories: Category[] = ['ci'];
|
|
|
|
export const defaultConfig = {
|
|
managerFilePatterns: [
|
|
'/(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$/',
|
|
'/(^|/)action\\.ya?ml$/',
|
|
],
|
|
};
|
|
|
|
export const supportedDatasources = [
|
|
GiteaTagsDatasource.id,
|
|
GithubDigestDatasource.id,
|
|
GithubRunnersDatasource.id,
|
|
GithubTagsDatasource.id,
|
|
];
|