fix: skip deployment on forks (#156)

* fix: skip on forks
* chore(release): 3.5.4-6

Close #153
This commit is contained in:
Shohei Ueda
2020-03-16 09:00:19 +09:00
committed by GitHub
parent ff31e77830
commit 4f06df820b
6 changed files with 126 additions and 4 deletions

View File

@@ -62,3 +62,18 @@ export async function addCNAME(
fs.writeFileSync(filepath, content + '\n');
core.info(`[INFO] Created ${filepath}`);
}
export async function skipOnFork(
isForkRepository: boolean,
githubToken: string,
deployKey: string,
personalToken: string
): Promise<boolean> {
if (isForkRepository) {
if (githubToken === '' && deployKey === '' && personalToken === '') {
return true;
}
}
return false;
}