From d38fb792ab0951e9b1d9368de44f43b64f166bef Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sun, 22 Mar 2020 16:24:03 +0900 Subject: [PATCH] feat: Add outputs.skipped --- action.yml | 3 +++ src/main.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c05618f..b163cf3 100644 --- a/action.yml +++ b/action.yml @@ -66,3 +66,6 @@ inputs: cname: description: 'Set custom domain' required: false +outputs: + skipped: + description: 'This parameter has true when this action skipped deployment' diff --git a/src/main.ts b/src/main.ts index 1964f95..9f3ce26 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ export async function run(): Promise { core.warning( 'This action runs on a fork and not found auth token, Skip deployment' ); - core.setOutput('skip', 'true'); + core.setOutput('skipped', 'true'); return; } }