Skip to content

Commit 4443975

Browse files
authored
chore: remove workflow missing warning (#79)
1 parent 2f437f0 commit 4443975

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,10 @@ function validateUserConfig(userConfig: Partial<GithubActionSWAConfig>) {
121121
}
122122

123123
export const readConfigFile = ({ userConfig }: { userConfig?: Partial<GithubActionSWAConfig> } = {}): Partial<GithubActionSWAConfig> | undefined => {
124-
const warningMessage = `INFO: Azure Static Web Apps configuration not found under ".github/workflows/"`;
125124
const githubActionFolder = path.resolve(process.cwd(), ".github/workflows/");
126125

127126
// does the config folder exist?
128127
if (fs.existsSync(githubActionFolder) === false) {
129-
console.warn(warningMessage);
130128
return userConfig && validateUserConfig(userConfig);
131129
}
132130

@@ -139,7 +137,6 @@ export const readConfigFile = ({ userConfig }: { userConfig?: Partial<GithubActi
139137

140138
// does the config file exist?
141139
if (!githubActionFile || fs.existsSync(githubActionFile)) {
142-
console.warn(warningMessage);
143140
return userConfig && validateUserConfig(userConfig);
144141
}
145142

0 commit comments

Comments
 (0)