fix: skip on fork (#159)

This commit is contained in:
Shohei Ueda 2020-03-16 12:03:08 +09:00 committed by GitHub
parent efb69e1873
commit 6fa13fefb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export async function run(): Promise<void> {
showInputs(inps);
const eventName = context.eventName;
if (eventName === 'pull_request') {
if (eventName === 'pull_request' || eventName === 'push') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const isForkRepository = (context.payload as any).repository.fork;
const isSkipOnFork = await skipOnFork(