From f6557e8b4e351d0087b04d02c5848620b58e9688 Mon Sep 17 00:00:00 2001 From: MoChilia Date: Mon, 22 Jul 2024 11:53:58 +0800 Subject: [PATCH] use env to disable pre/post --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 445408d8..5bea4953 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ branding: runs: using: 'node20' pre: 'lib/cleanup/index.js' - pre-if: (! startsWith(runner.name, 'GitHub Actions')) + pre-if: (! env.AZURE_LOGIN_PRE_CLEANUP_OFF) main: 'lib/main/index.js' post: 'lib/cleanup/index.js' - post-if: (! startsWith(runner.name, 'GitHub Actions')) + post-if: (! env.AZURE_LOGIN_POST_CLEANUP_OFF)