mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-06 19:41:36 +00:00
fix: skip on fork (#159)
This commit is contained in:
1 parent
efb69e1873
commit
6fa13fefb3
1 file changed
+1
-1
+1
-1
@@ -13,7 +13,7 @@ export async function run(): Promise<void> {
|
|||||||
showInputs(inps);
|
showInputs(inps);
|
||||||
|
|
||||||
const eventName = context.eventName;
|
const eventName = context.eventName;
|
||||||
if (eventName === 'pull_request') {
|
if (eventName === 'pull_request' || eventName === 'push') {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const isForkRepository = (context.payload as any).repository.fork;
|
const isForkRepository = (context.payload as any).repository.fork;
|
||||||
const isSkipOnFork = await skipOnFork(
|
const isSkipOnFork = await skipOnFork(
|
||||||
|
|||||||
Reference in new issue
Block a user