From fa97036308e3f1064ab0c9de01d7e0946a3c0073 Mon Sep 17 00:00:00 2001 From: The Hatsune Daishi Date: Tue, 6 Apr 2021 09:14:08 +0900 Subject: [PATCH] Allow use of this action in non-linux platforms with warning (fixes #47) --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 06ff25c..18080ca 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ import * as stateHelper from './state-helper'; export async function run(): Promise { try { if (os.platform() !== 'linux') { - throw new Error('Only supported on linux platform'); + core.warning('This action is intented for linux platform. You may experience problems.'); } const {registry, username, password, logout} = getInputs();