Skip to content

Commit

Permalink
feat: allow info.json validation to be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
fgardt authored Aug 5, 2024
1 parent 03eb537 commit 1b22947
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ async function verifyConditions(config, context) {
const errors = [];

try {
const info = await readInfoFile(config, context);
isInfoValid(config, context, info);
if (config.skip_validation !== true) {
const info = await readInfoFile(config, context);
isInfoValid(config, context, info);
}

await verifyToken(config, context, info.name);
} catch (error) {
Expand Down

0 comments on commit 1b22947

Please sign in to comment.