Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/modules/versioning/github-actions/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ describe('modules/versioning/github-actions/index', () => {
${'1.0.0-rc'} | ${'1.0'} | ${false}
${'invalid'} | ${'1'} | ${false}
${'~latest'} | ${'1'} | ${false}
${'1'} | ${'1'} | ${false}
${'1.2'} | ${'1.2'} | ${false}
${'1'} | ${'1'} | ${true}
${'1.2'} | ${'1.2'} | ${true}
Comment thread
jamietanna marked this conversation as resolved.
Resolved
${'1.2.3'} | ${'1.2.3'} | ${true}
${'1.2.4'} | ${'1.2.3'} | ${false}
${'not-semver-ver'} | ${'1'} | ${false}
Expand Down
5 changes: 5 additions & 0 deletions lib/modules/versioning/github-actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ function isGreaterThan(x: string, y: string): boolean {
}

function matches(version: string, range: string): boolean {
// if we have a valid floating tag provided, and it's the same as the range, treat it as the same
if (parseVersionCoerced(version) && version === range) {
return true;
}

const v = parseVersion(version);
if (!v) {
return false;
Expand Down
Loading