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

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(