Skip to content

Commit 2c42259

Browse files
committed
wip
1 parent efa003c commit 2c42259

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actions/disallow-versions-by-type/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/disallow-versions-by-type/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function run() {
2323
core.info(`Checking line: ${line}`);
2424
core.info(`Looking for version type: ${versionType}`);
2525

26-
if (line.includes(`"${packagesPrefix}`) && line.includes(':') && line.includes('major')) {
26+
if (line.includes(`"${packagesPrefix}`) && line.includes(':') && line.includes(versionType)) {
2727
core.info(`${versionType} version is not allowed. Found in '${filePath}'`);
2828
core.setFailed(`${versionType} version is not allowed. Found in '${filePath}'`);
2929
process.exit(1);

0 commit comments

Comments
 (0)